Skip to content

Commit

Permalink
Remove the nocover creation, no longer needed as the project does not…
Browse files Browse the repository at this point in the history
… check for that (#2205)

Signed-off-by: Bogdan Drutu <[email protected]>
  • Loading branch information
bogdandrutu authored Nov 23, 2020
1 parent 9dc1757 commit a460a4a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions cmd/mdatagen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,6 @@ func run(ymlPath string) error {
if err := ioutil.WriteFile(outputFile, formatted, 0600); err != nil {
return fmt.Errorf("failed writing %q: %v", outputFile, err)
}
// Exclude generated code from coverage and testing requirements.
nocoverFile := path.Join(outputDir, ".nocover")
if err := ioutil.WriteFile(nocoverFile, []byte("We test the generated code in the package it is used."),
0600); err != nil {
return fmt.Errorf("failed writing %v: %v", nocoverFile, err)
}

return nil
}

0 comments on commit a460a4a

Please sign in to comment.