INNER CODE UNIT · Go

removeDuplicateConformanceReports

kubernetes-sigs/gateway-api · tools/implist/main.go:406

func removeDuplicateConformanceReports(partialMap ConformantImpls, conformantMap ConformantImpls) {
	for conformantKey := range conformantMap {
		for partialKey := range partialMap {
			if conformantKey != partialKey {
				continue
			}
			// If there's a conformant and a partial report for the same implementation,
			// only the conformant one counts.
			//
			// NOTE FOR REVIEW:
			//
			// This means that, if you submit a conformance report for an implementation
			// that's partial, but newer, the older one will count.
			delete(partialMap, partialKey)
		}
	}
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…