Documentation ¶
Index ¶
Constants ¶
View Source
const ( // TestDigest is a valid digest. // // This matches TestData. TestDigest = "b1-gLO3B_5ClhdU52w1gMOxk4GokvCoM1OqjarxMfjStGQ=" // TestDigestWithDocumentation is a valid test digest. // // This matches TestDataWithDocumentation. TestDigestWithDocumentation = "b1-Vqi49Lw-sr3tTLQVwSJrRJnJSwV0yeg97ea957z02B0=" // TestModuleReferenceFooBarV1String is a valid module reference string. TestModuleReferenceFooBarV1String = "buf.build/foob/bar:v1" // TestModuleReferenceFooBarV2String is a valid module reference string. TestModuleReferenceFooBarV2String = "buf.build/foob/bar:v2" // TestModuleReferenceFooBazV1String is a valid module reference string. TestModuleReferenceFooBazV1String = "buf.build/foob/baz:v1" // TestModuleReferenceFooBazV2String is a valid module reference string. TestModuleReferenceFooBazV2String = "buf.build/foob/baz:v2" // TestDocumentation is a markdown module documentation file. TestModuleDocumentation = "# Module Documentation" )
Variables ¶
View Source
var ( // TestData is the data that maps to TestDigest with TestModuleReferenceString. TestData = map[string][]byte{ "file1.proto": []byte(`syntax="proto3";`), "folder/file2.proto": []byte(`syntax="proto3";`), } // TestDataWithDocumentation is the data that maps to TestDigestWithDocumentation. // // It includes a buf.md file. TestDataWithDocumentation = map[string][]byte{ "file1.proto": []byte(`syntax="proto3";`), "buf.md": []byte(TestModuleDocumentation), } // TestCommit is a valid commit. TestCommit string // TestModuleReferenceFooBarCommitString is a valid module reference string. TestModuleReferenceFooBarCommitString string // TestModuleReferenceFooBazCommitString is a valid module reference string. TestModuleReferenceFooBazCommitString string )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.