mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-07-20 23:57:11 -04:00
[PR #198] [MERGED] test: add unit tests for pkg/version package #229
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/vxcontrol/pentagi/pull/198
Author: @mason5052
Created: 3/12/2026
Status: ✅ Merged
Merged: 3/20/2026
Merged by: @asdek
Base:
feature/next_release← Head:test/version-package-coverage📝 Commits (1)
854cd6dtest: add unit tests for pkg/version package📊 Changes
1 file changed (+73 additions, -0 deletions)
View changed files
➕
backend/pkg/version/version_test.go(+73 -0)📄 Description
Description of Change
Problem: The
pkg/versionpackage has no unit test coverage. The package provides binary version, name, and development mode detection used throughout the application.Solution: Add comprehensive unit tests for all three exported functions (
GetBinaryVersion,IsDevelopMode,GetBinaryName) covering all code paths including default values, custom values, and combined version-revision formatting.Type of Change
Areas Affected
Testing and Verification
Test Configuration
Test Steps
go test ./pkg/version/... -vTest Results
Checklist
go fmtandgo vetrun🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.