(t *testing.T)
| 361 | } |
| 362 | |
| 363 | func TestSyntax(t *testing.T) { |
| 364 | ctx := context.Background() |
| 365 | err := transform.SetOptions(ctx, "prefix") |
| 366 | assert.Error(t, err) // should error as required value is missing |
| 367 | |
| 368 | err = transform.SetOptions(ctx, "banana") |
| 369 | assert.Error(t, err) // should error as unrecognized option |
| 370 | |
| 371 | err = transform.SetOptions(ctx, "=123") |
| 372 | assert.Error(t, err) // should error as required key is missing |
| 373 | |
| 374 | err = transform.SetOptions(ctx, "prefix=123") |
| 375 | assert.NoError(t, err) // should not error |
| 376 | } |
| 377 | |
| 378 | func TestConflicting(t *testing.T) { |
| 379 | ctx := context.Background() |
nothing calls this directly
no test coverage detected
searching dependent graphs…