INNER CODE UNIT · Go

TestAcceptedCryptoRecordNamesEverySite

minekube/gate · accepted_crypto_doc_test.go:120

func TestAcceptedCryptoRecordNamesEverySite(t *testing.T) {
	record := readRepoFile(t, acceptedCryptoDocPath)

	for _, site := range acceptedCryptoSites {
		if !strings.Contains(record, site.file) {
			t.Errorf("%s does not name the site path %s (%s); an unnamed exemption cannot be "+
				"triaged and will be re-reported", acceptedCryptoDocPath, site.file, site.name)
		}
		if !strings.Contains(record, site.symbol) {
			t.Errorf("%s does not name the symbol %s in %s (%s); a path-only entry rots the "+
				"moment the file moves", acceptedCryptoDocPath, site.symbol, site.file, site.name)
		}
	}

	// The point of the record is the justification, not the list. Require the protocol
	// anchors a future triager has to be able to cite, the knob that makes the login key
	// size a choice rather than an oversight, and the dismissal mapping (GitHub's reason
	// enum values, picked per site) that makes the eventual suppressions mechanical.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…