(t *testing.T)
| 714 | } |
| 715 | |
| 716 | func TestValToConstantError(t *testing.T) { |
| 717 | out, err := ast.ValToConstant(types.Duration{Duration: time.Duration(10)}) |
| 718 | if err == nil { |
| 719 | t.Errorf("ValToConstant() got %v, wanted error", out) |
| 720 | } |
| 721 | } |
| 722 | |
| 723 | func TestConstantToValError(t *testing.T) { |
| 724 | out, err := ast.ConstantToVal(&exprpb.Constant{}) |
nothing calls this directly
no test coverage detected