{{- $kind := .Get "type" | default "compat" -}} {{- $d := cond (eq $kind "correctness") .Site.Data.correctness .Site.Data.compat -}} {{- $rows := sort $d.codecs "total" "desc" -}}
| Codec | {{ if ne $kind "correctness" }}Type | {{ end }}Pass | Total | Rate |
|---|---|---|---|---|
{{ .codec }} |
{{ if ne $kind "correctness" }}{{ .type }} | {{ end }}{{ if eq $kind "correctness" }}{{ .correct }}{{ else }}{{ .pass }}{{ end }} | {{ .total }} |