INNER CODE UNIT · Go
TestAgentsMemoryPointsAtAcceptedCryptoRecord
minekube/gate · accepted_crypto_doc_test.go:161
func TestAgentsMemoryPointsAtAcceptedCryptoRecord(t *testing.T) {
agents := readRepoFile(t, "AGENTS.md")
if !strings.Contains(agents, acceptedCryptoDocPath) {
t.Errorf("AGENTS.md does not mention %s; the record needs one pointer from the project "+
"memory to be found without archaeology", acceptedCryptoDocPath)
}
}
// TestAcceptedCryptoSitesCarryPointerComment keeps the record and the code in step: each
// accepted site must still point at the record from the source, at the symbol the record
// names, and the pinned primitives must still be the accepted ones.
func TestAcceptedCryptoSitesCarryPointerComment(t *testing.T) {
for _, site := range acceptedCryptoSites {
src := readRepoFile(t, site.file)
if !strings.Contains(src, site.symbol) {
t.Errorf("%s no longer defines %s but %s still exempts it (%s); remove the site from "+
"the record or move the pointer with the code", site.file, site.symbol,