MCPcopy Create free account
hub / github.com/github/gh-aw / TestMetadataPreservesHash

Function TestMetadataPreservesHash

pkg/workflow/lock_schema_test.go:535–546  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

533}
534
535func TestMetadataPreservesHash(t *testing.T) {
536 // Test that frontmatter hash is preserved in metadata
537 originalHash := "abc123def456"
538 content := `# gh-aw-metadata: {"schema_version":"v1","frontmatter_hash":"` + originalHash + `"}
539name: test
540`
541
542 metadata, _, err := ExtractMetadataFromLockFile(content)
543 require.NoError(t, err)
544 require.NotNil(t, metadata)
545 assert.Equal(t, originalHash, metadata.FrontmatterHash, "Should preserve frontmatter hash exactly")
546}
547
548func TestFormatSupportedVersions(t *testing.T) {
549 formatted := formatSupportedVersions()

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected