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

Function name

analysis/validation_test.go:34–40  ·  view source on GitHub ↗
(str string)

Source from the content-addressed store, hash-verified

32var testCases embed.FS
33
34func name(str string) ast.Constant {
35 n, err := ast.Name(str)
36 if err != nil {
37 panic(fmt.Errorf("bad name in test case: %s got %w", str, err))
38 }
39 return n
40}
41
42func fml(str string) ast.Term {
43 t, err := parse.LiteralOrFormula(str)

Calls 1

NameFunction · 0.92

Tested by

no test coverage detected