MCPcopy
hub / github.com/expr-lang/expr / TestCheck_IntSums

Function TestCheck_IntSums

checker/checker_test.go:737–744  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

735}
736
737func TestCheck_IntSums(t *testing.T) {
738 tree, err := parser.Parse(`Uint32 + Int32`)
739 require.NoError(t, err)
740
741 typ, err := checker.Check(tree, conf.New(mock.Env{}))
742 assert.NoError(t, err)
743 assert.Equal(t, typ.Kind(), reflect.Int)
744}
745
746func TestVisitor_ConstantNode(t *testing.T) {
747 tree, err := parser.Parse(`re("[a-z]")`)

Callers

nothing calls this directly

Calls 6

ParseFunction · 0.92
NoErrorFunction · 0.92
CheckFunction · 0.92
NewFunction · 0.92
NoErrorFunction · 0.92
EqualFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…