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

Function evAtom

functional/functional_test.go:396–406  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

394}
395
396func evAtom(s string) ast.Atom {
397 term, err := parse.Term(s)
398 if err != nil {
399 panic(err)
400 }
401 eval, err := EvalAtom(term.(ast.Atom), nil)
402 if err != nil {
403 panic(err)
404 }
405 return eval
406}
407
408func TestEvalApplyFn(t *testing.T) {
409 tests := []struct {

Callers 1

TestRoundTripFunction · 0.70

Calls 2

TermFunction · 0.92
EvalAtomFunction · 0.85

Tested by

no test coverage detected