MCPcopy Create free account
hub / github.com/Effect-TS/tsgo / TestAutoImportStyleDefaults

Function TestAutoImportStyleDefaults

etscore/options_test.go:470–485  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

468}
469
470func 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
487func TestAutoImportStyleNormalization(t *testing.T) {
488 opts := &etscore.EffectPluginOptions{

Callers

nothing calls this directly

Calls 4

GetImportAliasesMethod · 0.95

Tested by

no test coverage detected