Files
nuntius/internal/version/version_test.go
T

23 lines
528 B
Go
Raw Normal View History

// Copyright (c) 2026 Petr Balvín <opensource@petrbalvin.org> (https://petrbalvin.org)
// SPDX-License-Identifier: MIT
//go:build linux || freebsd
package version
import "testing"
func TestName(t *testing.T) {
if Name != "nuntius" {
t.Errorf("Name = %q, want %q", Name, "nuntius")
}
}
func TestVersion(t *testing.T) {
// The recorded version is never empty: at a tag it is the tag, elsewhere
// a pseudo-version, and (devel) outside version control.
if Version() == "" {
t.Error("Version must not be empty")
}
}