(t *testing.T)
| 342 | } |
| 343 | |
| 344 | func TestReferenceInfoAddOverload(t *testing.T) { |
| 345 | add := ast.NewFunctionReference(overloads.AddBytes) |
| 346 | add.AddOverload(overloads.AddDouble) |
| 347 | if !add.Equals(ast.NewFunctionReference(overloads.AddBytes, overloads.AddDouble)) { |
| 348 | t.Error("AddOverload() did not produce equal references") |
| 349 | } |
| 350 | add.AddOverload(overloads.AddDouble) |
| 351 | if !add.Equals(ast.NewFunctionReference(overloads.AddBytes, overloads.AddDouble)) { |
| 352 | t.Error("repeated AddOverload() did not produce equal references") |
| 353 | } |
| 354 | } |
| 355 | |
| 356 | func TestNewSourceInfoRelative(t *testing.T) { |
| 357 | sourceInfo := ast.NewSourceInfo( |
nothing calls this directly
no test coverage detected