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

Function clause

engine/seminaivebottomup_test.go:51–57  ·  view source on GitHub ↗
(str string)

Source from the content-addressed store, hash-verified

49}
50
51func clause(str string) ast.Clause {
52 clause, err := parse.Clause(str)
53 if err != nil {
54 panic(fmt.Errorf("bad syntax in test case: %s got %w", str, err))
55 }
56 return clause
57}
58
59func unit(str string) parse.SourceUnit {
60 unit, err := parse.Unit(strings.NewReader(str))

Callers 15

TestShortestPathsFunction · 0.70
TestMapFunction · 0.70
TestReduceFunction · 0.70
TestGroupByFunction · 0.70
initFunction · 0.70
TestSingleDeltaRuleFunction · 0.70
TestRewriteIdempotencyFunction · 0.70
TestNegationFunction · 0.70
TestNegationOrderFunction · 0.70
TestMakeDeltaRulesFunction · 0.70
TestNonLinearFunction · 0.70
TestBuiltinFunction · 0.70

Calls 1

ClauseFunction · 0.92

Tested by

no test coverage detected