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

Function TestLockMetadataJSONCompact

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

Source from the content-addressed store, hash-verified

555}
556
557func TestLockMetadataJSONCompact(t *testing.T) {
558 // Verify JSON is compact (no newlines) for single-line comment embedding
559 metadata := &LockMetadata{
560 SchemaVersion: LockSchemaV1,
561 FrontmatterHash: "test",
562 }
563
564 json, err := metadata.ToJSON()
565 require.NoError(t, err)
566 assert.NotContains(t, json, "\n", "JSON should be compact without newlines")
567 assert.NotContains(t, json, " ", "JSON should not have extra spaces")
568}
569
570func TestSchemaVersionAsString(t *testing.T) {
571 // Verify LockSchemaVersion can be used as string

Callers

nothing calls this directly

Calls 1

ToJSONMethod · 0.95

Tested by

no test coverage detected