MCPcopy Index your code
hub / github.com/cloudquery/cloudquery / TestDoc

Function TestDoc

cli/cmd/doc_test.go:48–61  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

46}
47
48func TestDoc(t *testing.T) {
49 tmpDir := generateDocs(t)
50
51 files, err := os.ReadDir(tmpDir)
52 require.NoError(t, err)
53
54 fnames := make([]string, len(files))
55 for i := range files {
56 fnames[i] = files[i].Name()
57 }
58 slices.Sort(fnames)
59 slices.Sort(docFiles)
60 require.Equal(t, docFiles, fnames)
61}
62
63// TestDocHeadingStructure verifies the heading hierarchy of every generated
64// markdown page:

Callers

nothing calls this directly

Calls 1

generateDocsFunction · 0.85

Tested by

no test coverage detected