summaryrefslogtreecommitdiff
path: root/internal/task/story_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/task/story_test.go')
-rw-r--r--internal/task/story_test.go42
1 files changed, 0 insertions, 42 deletions
diff --git a/internal/task/story_test.go b/internal/task/story_test.go
deleted file mode 100644
index 38d0290..0000000
--- a/internal/task/story_test.go
+++ /dev/null
@@ -1,42 +0,0 @@
-package task
-
-import "testing"
-
-func TestValidStoryTransition_Valid(t *testing.T) {
- cases := []struct {
- from StoryState
- to StoryState
- }{
- {StoryPending, StoryInProgress},
- {StoryInProgress, StoryShippable},
- {StoryInProgress, StoryNeedsFix},
- {StoryNeedsFix, StoryInProgress},
- {StoryShippable, StoryDeployed},
- {StoryDeployed, StoryValidating},
- {StoryValidating, StoryReviewReady},
- {StoryValidating, StoryNeedsFix},
- }
- for _, tc := range cases {
- if !ValidStoryTransition(tc.from, tc.to) {
- t.Errorf("expected valid transition %s → %s", tc.from, tc.to)
- }
- }
-}
-
-func TestValidStoryTransition_Invalid(t *testing.T) {
- cases := []struct {
- from StoryState
- to StoryState
- }{
- {StoryPending, StoryDeployed},
- {StoryReviewReady, StoryPending},
- {StoryReviewReady, StoryInProgress},
- {StoryReviewReady, StoryShippable},
- {StoryShippable, StoryPending},
- }
- for _, tc := range cases {
- if ValidStoryTransition(tc.from, tc.to) {
- t.Errorf("expected invalid transition %s → %s", tc.from, tc.to)
- }
- }
-}