Skip to content

test: use t.Fatal/t.Helper in helpers and implement TestNewFile#40

Open
leno23 wants to merge 1 commit into
dolph:mainfrom
leno23:fix/test-helpers-issue-33
Open

test: use t.Fatal/t.Helper in helpers and implement TestNewFile#40
leno23 wants to merge 1 commit into
dolph:mainfrom
leno23:fix/test-helpers-issue-33

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 17, 2026

Summary

  • Replace log.Fatal in test setup helpers with testing.TB.Fatal so one setup failure does not exit the whole test binary
  • Add t.Helper() to assertion helpers for accurate failure attribution
  • Implement TestNewFile covering absolute and relative paths

Fixes #33

Made with Cursor

Replace log.Fatal in test setup helpers with testing.TB.Fatal so a
single setup failure does not abort the entire test binary. Add
t.Helper() to assertion helpers for accurate failure line reporting.
Implement TestNewFile for absolute and relative paths.

Fixes dolph#33

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test helpers use log.Fatal (kills test binary), assertion helpers lack t.Helper(), and TestNewFile is empty

1 participant