All checks were successful
Beta Release / beta (push) Successful in 34s
Remove 5 unused packages (daemon, preview, proxy, workflow) and dead symbols across 7 files: orchestrator workflow engine, skills Target type and Update(), LSP config generation, installer SetupPrompt(), unexported desktop options, and version License/Prerelease. Total: -1453 lines.
29 lines
541 B
Go
29 lines
541 B
Go
package version
|
|
|
|
import (
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
func TestFullVersion(t *testing.T) {
|
|
v := FullVersion()
|
|
if !strings.HasPrefix(v, Name) {
|
|
t.Errorf("FullVersion should start with %s, got %s", Name, v)
|
|
}
|
|
if !strings.Contains(v, "v"+Version) {
|
|
t.Errorf("FullVersion should contain v%s, got %s", Version, v)
|
|
}
|
|
}
|
|
|
|
func TestConstants(t *testing.T) {
|
|
if Name == "" {
|
|
t.Error("Name should not be empty")
|
|
}
|
|
if Version == "" {
|
|
t.Error("Version should not be empty")
|
|
}
|
|
if Author == "" {
|
|
t.Error("Author should not be empty")
|
|
}
|
|
}
|