(t *testing.T)
| 674 | } |
| 675 | |
| 676 | func TestReferenceInfoToProtoError(t *testing.T) { |
| 677 | out, err := ast.ReferenceInfoToProto( |
| 678 | ast.NewIdentReference("SECOND", types.Duration{Duration: time.Duration(1) * time.Second})) |
| 679 | if err == nil { |
| 680 | t.Errorf("ReferenceInfoToProto() got %v, wanted error", out) |
| 681 | } |
| 682 | } |
| 683 | |
| 684 | func TestProtoToReferenceInfoError(t *testing.T) { |
| 685 | out, err := ast.ProtoToReferenceInfo(&exprpb.Reference{Value: &exprpb.Constant{}}) |
nothing calls this directly
no test coverage detected