INNER CODE UNIT · Go

TestRunGenerateDocs_Success

bjw-s-labs/helm-charts · tools/helm-schema-tools/cmd/helm-schema-tools/main_test.go:90

func TestRunGenerateDocs_Success(t *testing.T) {
	requireSchematoolsCLI(t)
	tmpDir := t.TempDir()
	schemaPath := filepath.Join(tmpDir, "test.schema.json")
	outputDir := filepath.Join(tmpDir, "docs")

	schema := `{
		"$schema": "https://json-schema.org/draft/2020-12/schema",
		"type": "object",
		"properties": {
			"config": {
				"description": "Configuration",
				"type": "object"
			}
		}
	}`

	if err := os.WriteFile(schemaPath, []byte(schema), 0o600); err != nil {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…