(t *testing.T)
| 769 | } |
| 770 | |
| 771 | func TestCheck_AsInt64(t *testing.T) { |
| 772 | tree, err := parser.Parse(`true`) |
| 773 | require.NoError(t, err) |
| 774 | |
| 775 | config := &conf.Config{} |
| 776 | expr.AsInt64()(config) |
| 777 | |
| 778 | _, err = checker.Check(tree, config) |
| 779 | assert.Error(t, err) |
| 780 | assert.Equal(t, "expected int64, but got bool", err.Error()) |
| 781 | } |
| 782 | |
| 783 | func TestCheck_TaggedFieldName(t *testing.T) { |
| 784 | tree, err := parser.Parse(`foo.bar`) |
nothing calls this directly
no test coverage detected
searching dependent graphs…