Passed
Push — master ( 6fca9e...82ba0d )
by Huu-Phat
02:25 queued 10s
created

cms/src/post/state/selectors.js   A

Complexity

Total Complexity 15
Complexity/F 1

Size

Lines of Code 29
Function Count 15

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 15
eloc 15
mnd 0
bc 0
fnc 15
dl 0
loc 29
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
ccs 15
cts 15
cp 1
1 2
export const getPostTitle = state => state.post.content.title
2
3 2
export const getEditedTitle = state => state.post.editedContent.title
4
5 2
export const getPostSlug = state => state.post.content.slug
6
7 2
export const getEditedSlug = state => state.post.editedContent.slug
8
9 2
export const getPostBrief = state => state.post.content.brief
10
11 2
export const getEditedBrief = state => state.post.editedContent.brief
12
13 2
export const getPostAuthor = state => state.post.content.author
14
15 2
export const getEditedAuthor = state => state.post.editedContent.author
16
17 2
export const getPostTime = state => state.post.content.time
18
19 2
export const getEditedTime = state => state.post.editedContent.time
20
21 2
export const getPostTags = state => state.post.content.tag
22
23 2
export const getEditedTags = state => state.post.editedContent.tag
24
25 2
export const getEditedContent = state => state.post.editedContent.content
26
27 2
export const getSavingContent = state => state.post.editedContent
28
29
export const getIsPostLoading = state => state.post.loading
30