INNER CODE UNIT · Go

TestMixedDirectoriesCheck

hashicorp/terraform-plugin-docs · internal/check/directory_test.go:16

func TestMixedDirectoriesCheck(t *testing.T) {
	t.Parallel()
	testCases := map[string]struct {
		ProviderFS  fs.FS
		ExpectError bool
	}{
		"valid mixed directories": {
			ProviderFS: fstest.MapFS{
				"docs/nonregistrydocs/thing.md": {},
				"website/docs/index.md":         {},
			},
		},
		"valid mixed directories - cdktf": {
			ProviderFS: fstest.MapFS{
				"docs/cdktf/typescript/index.md": {},
				"website/docs/index.md":          {},
			},
		},

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…