INNER CODE UNIT · Go
TestAcceptedCryptoSitesCarryPointerComment
minekube/gate · accepted_crypto_doc_test.go:172
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,
acceptedCryptoDocPath, site.name)
continue
}
if !strings.Contains(src, acceptedCryptoDocPath) {
t.Errorf("%s does not point at %s (%s); a triager reading the flagged line must find "+
"the rationale there, not only in AGENTS.md", site.file, acceptedCryptoDocPath, site.name)
}
if site.marker != "" && !strings.Contains(src, site.marker) {
t.Errorf("%s no longer contains %q (%s). The record accepts this primitive as "+
"deliberate, so a change here has to update %s in the same change",
site.file, site.marker, site.name, acceptedCryptoDocPath)