(t *testing.T)
| 533 | } |
| 534 | |
| 535 | func 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 + `"} |
| 539 | name: 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 | |
| 548 | func TestFormatSupportedVersions(t *testing.T) { |
| 549 | formatted := formatSupportedVersions() |
nothing calls this directly
no test coverage detected