package main import ( "testing" "github.com/stretchr/testify/assert" ) // TestAppname pins the program name that main passes to cli.Run; it is // the name that appears in usage output and in the log prefix. It also // keeps this package compiled under `go test`. func TestAppname(t *testing.T) { t.Parallel() assert.Equal(t, "mfer", Appname) } // TestVersionDefaults documents that Version and Gitrev are empty unless // injected at build time via -ldflags. func TestVersionDefaults(t *testing.T) { t.Parallel() assert.Empty(t, Version) assert.Empty(t, Gitrev) }