Skip to content

Commit

Permalink
show entries for all vectors (#87)
Browse files Browse the repository at this point in the history
previous behavior ignored vectors with no corresponding tests
  • Loading branch information
finn-block authored Dec 20, 2023
1 parent 93b85ee commit 9482707
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion reports/reports.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
var (
ErrNotSupported = errors.New("test not supported by this SDK")

//go:embed *
//go:embed report-template.html
templatesFS embed.FS

htmlTemplates = htmltemplate.New("")
Expand Down Expand Up @@ -84,6 +84,14 @@ func (r Result) GetEmoji() string {

func (s SDKMeta) buildReport(suites []junit.Suite) (Report, error) {
results := make(map[string]map[string]Result)

for feature, vectors := range knownVectors {
results[feature] = make(map[string]Result)
for vector := range vectors {
results[feature][vector] = Result{}
}
}

for _, suite := range suites {
suiteName := suite.Name
if s.FeatureRegex != nil {
Expand Down

0 comments on commit 9482707

Please sign in to comment.