Documentation
¶
Index ¶
- func DetectMissingDocs(schemaDiff diff.SchemaDiff, repoPath string) (map[string]MissingDocDetails, error)
- func DetectMissingDocsForDatasource(schemaDiff diff.SchemaDiff, repoPath string) (map[string]MissingDocDetails, error)
- func DetectMissingTests(schemaDiff diff.SchemaDiff, allTests []*reader.Test) (map[string]*MissingTestInfo, error)
- type Field
- type FieldSet
- type MissingDocDetails
- type MissingTestInfo
- type ResourceChanges
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectMissingDocs ¶
func DetectMissingDocs(schemaDiff diff.SchemaDiff, repoPath string) (map[string]MissingDocDetails, error)
DetectMissingDocs detect new fields that are missing docs given the schema diffs. Return a map of resource names to missing doc info.
func DetectMissingDocsForDatasource ¶
func DetectMissingDocsForDatasource(schemaDiff diff.SchemaDiff, repoPath string) (map[string]MissingDocDetails, error)
func DetectMissingTests ¶
func DetectMissingTests(schemaDiff diff.SchemaDiff, allTests []*reader.Test) (map[string]*MissingTestInfo, error)
Detect missing tests for the given resource changes map in the given slice of tests. Return a map of resource names to missing test info about that resource.
Types ¶
type MissingDocDetails ¶
MissingDocDetails denotes the doc file path and the fields that are not shown up in the corresponding doc.
type MissingTestInfo ¶
type ResourceChanges ¶
ResourceChanges is a nested map with field names as keys and Field objects as bottom-level values. Fields are assumed not to be covered until detected in a test.
Click to show internal directories.
Click to hide internal directories.