(t *testing.T)
| 3 | import "testing" |
| 4 | |
| 5 | func TestIsValidTrigger(t *testing.T) { |
| 6 | if !IsValidTrigger(TriggerTimeout) { |
| 7 | t.Fatal("timeout should be valid") |
| 8 | } |
| 9 | if IsValidTrigger("not_a_trigger") { |
| 10 | t.Fatal("invalid trigger accepted") |
| 11 | } |
| 12 | } |
nothing calls this directly
no test coverage detected