summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-01-28 14:51:58 +0300
committerWolfy-J <[email protected]>2018-01-28 14:51:58 +0300
commit2fb2c99601e2cb9a234896fcf115754665cbde7a (patch)
treecc787699495bbfd8b230ff32bf85f8e8092149e5
parent245a79982ffe3f621d8ebb191dbe63ddacb67d05 (diff)
coverage
-rw-r--r--.gitignore1
-rw-r--r--state_test.go5
2 files changed, 6 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 6755eaa6..14470a50 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+coverage.txt
.idea
.idea/*
composer.lock
diff --git a/state_test.go b/state_test.go
index 965ba6b6..636cd859 100644
--- a/state_test.go
+++ b/state_test.go
@@ -10,6 +10,11 @@ func Test_NewState(t *testing.T) {
assert.Equal(t, "errored", st.String())
assert.NotEqual(t, 0, st.Updated().Unix())
+
+ assert.Equal(t, "inactive", newState(StateInactive).String())
+ assert.Equal(t, "ready", newState(StateReady).String())
+ assert.Equal(t, "working", newState(StateWorking).String())
+ assert.Equal(t, "stopped", newState(StateStopped).String())
}
func Test_IsActive(t *testing.T) {