summaryrefslogtreecommitdiff
path: root/state_test.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-12-17 02:34:44 +0300
committerValery Piashchynski <[email protected]>2020-12-17 02:34:44 +0300
commit9d5fe4f6a98b30fd73be8259f84fa595ac994a71 (patch)
treee49c46b03d8facc73e96f1b6247d83367cc65398 /state_test.go
parent1033c25b6bfc752d6059e446510f651e22cbf49b (diff)
huge refactor
Diffstat (limited to 'state_test.go')
-rwxr-xr-xstate_test.go27
1 files changed, 0 insertions, 27 deletions
diff --git a/state_test.go b/state_test.go
deleted file mode 100755
index 10547a4b..00000000
--- a/state_test.go
+++ /dev/null
@@ -1,27 +0,0 @@
-package roadrunner
-
-import (
- "testing"
-
- "github.com/stretchr/testify/assert"
-)
-
-func Test_NewState(t *testing.T) {
- st := newState(StateErrored)
-
- assert.Equal(t, "errored", st.String())
-
- 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())
- assert.Equal(t, "undefined", newState(1000).String())
-}
-
-func Test_IsActive(t *testing.T) {
- assert.False(t, newState(StateInactive).IsActive())
- assert.True(t, newState(StateReady).IsActive())
- assert.True(t, newState(StateWorking).IsActive())
- assert.False(t, newState(StateStopped).IsActive())
- assert.False(t, newState(StateErrored).IsActive())
-}