Cleaned up documentation and development artifcats in advance of release
This commit is contained in:
21
internal/pipeline/runner_test.go
Normal file
21
internal/pipeline/runner_test.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package pipeline
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"gitea.maximumdirect.net/eric/seriatim/internal/buildinfo"
|
||||
"gitea.maximumdirect.net/eric/seriatim/internal/config"
|
||||
)
|
||||
|
||||
func TestFinalizeReportUsesBuildVersion(t *testing.T) {
|
||||
original := buildinfo.Version
|
||||
t.Cleanup(func() {
|
||||
buildinfo.Version = original
|
||||
})
|
||||
buildinfo.Version = "v1.0.0-test"
|
||||
|
||||
rpt := finalizeReport(config.Config{}, nil)
|
||||
if rpt.Metadata.Version != "v1.0.0-test" {
|
||||
t.Fatalf("version = %q, want v1.0.0-test", rpt.Metadata.Version)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user