go/tests
Snider 5d67088080 feat: Service as typed struct, Result without generics
Service is now a proper struct with OnStart/OnStop/OnReload lifecycle
functions — not a registry wrapping any. Packages create Service{} with
typed fields, same pattern as Command and Option.

Result drops generics — Value is any. The struct is the container,
Value is the generic. No more Result[T] ceremony.

Service(name, Service{}) to register, Service(name) to get — both
return Result. ServiceFactory returns Result not (any, error).

NewWithFactories/NewRuntime return Result.

232 tests, 77.8% coverage.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-20 13:30:22 +00:00
..
testdata feat: Command DTO + Cli surface — AX-native CLI primitives 2026-03-20 12:08:19 +00:00
app_test.go test: rewrite test suite for AX primitives API 2026-03-20 08:42:38 +00:00
array_test.go test: rewrite test suite for AX primitives API 2026-03-20 08:42:38 +00:00
cli_test.go feat: Service as typed struct, Result without generics 2026-03-20 13:30:22 +00:00
command_test.go feat: Service as typed struct, Result without generics 2026-03-20 13:30:22 +00:00
config_test.go test: rewrite test suite for AX primitives API 2026-03-20 08:42:38 +00:00
core_test.go test: 200 tests, 50.2% coverage — Data, I18n, Fs, Log, Embed, Runtime 2026-03-20 10:49:33 +00:00
data_test.go test: 200 tests, 50.2% coverage — Data, I18n, Fs, Log, Embed, Runtime 2026-03-20 10:49:33 +00:00
drive_test.go feat: Service as typed struct, Result without generics 2026-03-20 13:30:22 +00:00
embed_test.go test: 214 tests, 79% coverage — GeneratePack with real files, SetOutput, crash reports 2026-03-20 12:10:41 +00:00
error_test.go feat: Join() reclaimed for strings — ErrorJoin for errors 2026-03-20 12:42:10 +00:00
fs_test.go test: rewrite test suite for AX primitives API 2026-03-20 08:42:38 +00:00
i18n_test.go feat: Service as typed struct, Result without generics 2026-03-20 13:30:22 +00:00
ipc_test.go test: rewrite test suite for AX primitives API 2026-03-20 08:42:38 +00:00
lock_test.go feat: Service as typed struct, Result without generics 2026-03-20 13:30:22 +00:00
log_test.go test: 214 tests, 79% coverage — GeneratePack with real files, SetOutput, crash reports 2026-03-20 12:10:41 +00:00
options_test.go test: rewrite test suite for AX primitives API 2026-03-20 08:42:38 +00:00
runtime_test.go feat: Service as typed struct, Result without generics 2026-03-20 13:30:22 +00:00
service_test.go feat: Service as typed struct, Result without generics 2026-03-20 13:30:22 +00:00
string_test.go feat: Join() reclaimed for strings — ErrorJoin for errors 2026-03-20 12:42:10 +00:00
task_test.go test: rewrite test suite for AX primitives API 2026-03-20 08:42:38 +00:00
utils_test.go feat: utils.go — FilterArgs, ParseFlag with short/long flag rules 2026-03-20 12:15:57 +00:00