Skip to content

Commit b9e8bc1

Browse files
committed
add string vsn
1 parent 935539e commit b9e8bc1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

‎internal/addrs/resource.go

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ func (r Resource) String() string {
2929
return fmt.Sprintf("data.%s.%s", r.Type, r.Name)
3030
case EphemeralResourceMode:
3131
return fmt.Sprintf("ephemeral.%s.%s", r.Type, r.Name)
32+
case ListResourceMode:
33+
return fmt.Sprintf("list.%s.%s", r.Type, r.Name)
3234
default:
3335
// Should never happen, but we'll return a string here rather than
3436
// crashing just in case it does.

‎internal/initwd/testing.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func LoadConfigForTests(t *testing.T, rootDir string, testsDir string) (*configs
5353
t.Fatalf("failed to refresh modules after installation: %s", err)
5454
}
5555

56-
config, hclDiags := loader.LoadConfig(rootDir)
56+
config, hclDiags := loader.LoadConfig(rootDir, configs.MatchTestFiles(testsDir), configs.MatchQueryFiles())
5757
diags = diags.Append(hclDiags)
5858
return config, loader, cleanup, diags
5959
}

0 commit comments

Comments
 (0)