(t *testing.T)
| 468 | } |
| 469 | |
| 470 | func TestAutoImportStyleDefaults(t *testing.T) { |
| 471 | opts := &etscore.EffectPluginOptions{} |
| 472 | |
| 473 | if got := opts.GetNamespaceImportPackages(); len(got) != 0 { |
| 474 | t.Errorf("GetNamespaceImportPackages() = %v, want empty list", got) |
| 475 | } |
| 476 | if got := opts.GetBarrelImportPackages(); len(got) != 0 { |
| 477 | t.Errorf("GetBarrelImportPackages() = %v, want empty list", got) |
| 478 | } |
| 479 | if got := opts.GetImportAliases(); len(got) != 0 { |
| 480 | t.Errorf("GetImportAliases() = %v, want empty map", got) |
| 481 | } |
| 482 | if got := opts.GetTopLevelNamedReexports(); got != etscore.TopLevelNamedReexportsIgnore { |
| 483 | t.Errorf("GetTopLevelNamedReexports() = %q, want %q", got, etscore.TopLevelNamedReexportsIgnore) |
| 484 | } |
| 485 | } |
| 486 | |
| 487 | func TestAutoImportStyleNormalization(t *testing.T) { |
| 488 | opts := &etscore.EffectPluginOptions{ |
nothing calls this directly
no test coverage detected