(t *testing.T)
| 226 | } |
| 227 | |
| 228 | func TestFunctionNoOverloads(t *testing.T) { |
| 229 | _, err := NewCustomEnv( |
| 230 | Function("right", SingletonBinaryBinding(func(arg1, arg2 ref.Val) ref.Val { |
| 231 | return arg2 |
| 232 | }))) |
| 233 | if err == nil || !strings.Contains(err.Error(), "must have at least one overload") { |
| 234 | t.Errorf("got %v, wanted 'must have at least one overload'", err) |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | func TestSingletonUnaryBinding(t *testing.T) { |
| 239 | // Test the case where the singleton unary impl is merged with the earlier declaration. |
nothing calls this directly
no test coverage detected