MCPcopy
hub / github.com/google/mangle / TestTemporalSequence

Function TestTemporalSequence

examples/examples_test.go:74–84  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

72}
73
74func TestTemporalSequence(t *testing.T) {
75 program := readExample(t, "temporal_sequence.mg")
76 facts := runEvaluate(t, program)
77
78 if !containsFact(facts, "match(/u1)") {
79 t.Errorf("Expected match(/u1)")
80 }
81 if containsFact(facts, "match(/u2)") {
82 t.Errorf("Did not expect match(/u2)")
83 }
84}
85
86// Helpers
87

Callers

nothing calls this directly

Calls 3

readExampleFunction · 0.85
runEvaluateFunction · 0.85
containsFactFunction · 0.85

Tested by

no test coverage detected