feat: inline tests + Fs zero-value fix + coverage 76.9% → 82.3% #27

Merged
Snider merged 2 commits from dev into main 2026-03-23 18:03:57 +00:00
Owner

Move all tests from tests/ to package root for proper coverage.
Fix Fs zero-value: path() and validatePath() default empty root
to "/" so &Fs{} works without New().

New tests: PathGlob, PathIsAbs, CleanPath, Cli.SetOutput,
ServiceShutdown, Core.Context, Fs zero-value, Fs protected
delete, Command lifecycle with implementation, error formatting
branches, PerformAsync completion/no-handler/after-shutdown,
Extract with templates, Embed path traversal.

Coverage: 76.9% → 82.3% (23 test files).

Co-Authored-By: Virgil virgil@lethean.io

Move all tests from tests/ to package root for proper coverage. Fix Fs zero-value: path() and validatePath() default empty root to "/" so &Fs{} works without New(). New tests: PathGlob, PathIsAbs, CleanPath, Cli.SetOutput, ServiceShutdown, Core.Context, Fs zero-value, Fs protected delete, Command lifecycle with implementation, error formatting branches, PerformAsync completion/no-handler/after-shutdown, Extract with templates, Embed path traversal. Coverage: 76.9% → 82.3% (23 test files). Co-Authored-By: Virgil <virgil@lethean.io>
Snider added 1 commit 2026-03-23 17:55:06 +00:00
Move all tests from tests/ to package root for proper coverage.
Fix Fs zero-value: path() and validatePath() default empty root
to "/" so &Fs{} works without New().

New tests: PathGlob, PathIsAbs, CleanPath, Cli.SetOutput,
ServiceShutdown, Core.Context, Fs zero-value, Fs protected
delete, Command lifecycle with implementation, error formatting
branches, PerformAsync completion/no-handler/after-shutdown,
Extract with templates, Embed path traversal.

Coverage: 76.9% → 82.3% (23 test files).

Co-Authored-By: Virgil <virgil@lethean.io>
Virgil added 1 commit 2026-03-23 17:58:16 +00:00
Keep dev's additional tests (Glob, IsAbs, CleanPath, TrailingSlash)
alongside main's Env/Path helpers.

Co-Authored-By: Virgil <virgil@lethean.io>
Snider merged commit 1450179b9c into main 2026-03-23 18:03:57 +00:00
Sign in to join this conversation.
No description provided.