Sha256: 03274dd0dcdc9a7fcae5b3e2db3bc2f5c0f871c142ccffc8b98cd998abf4224b
Contents?: true
Size: 429 Bytes
Versions: 26
Compression:
Stored size: 429 Bytes
Contents
package flapjack import "testing" func TestValidationFails(t *testing.T) { event := Event{} err := event.IsValid() if err == nil { t.Error("Expected validation to fail.") } } func TestValidationPasses(t *testing.T) { event := Event{ Entity: "hello", Check: "world", State: "ok", Summary: "hello world", } err := event.IsValid() if err != nil { t.Error("Expected validation to pass, got:", err) } }
Version data entries
26 entries across 26 versions & 1 rubygems