Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(utils): test exists function #3007

Closed
wants to merge 2 commits into from

Conversation

estensen
Copy link
Contributor

No description provided.

@github-actions github-actions bot added the external Issues created by non node team members label Dec 14, 2023
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (31e0660) 50.94% compared to head (d0e5d6d) 50.98%.
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3007      +/-   ##
==========================================
+ Coverage   50.94%   50.98%   +0.04%     
==========================================
  Files         168      168              
  Lines       11022    11022              
==========================================
+ Hits         5615     5620       +5     
+ Misses       4903     4901       -2     
+ Partials      504      501       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


func TestExists(t *testing.T) {
// Create a temporary file for testing
tmpFile, err := os.CreateTemp("", "test")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think i'd prefer if we use t.TempDir() here please https://pkg.go.dev/testing#T.TempDir

@ramin ramin added the kind:testing Related to unit tests label Dec 18, 2023
@estensen estensen requested a review from ramin December 20, 2023 07:00
@ramin ramin closed this Dec 21, 2023
@estensen
Copy link
Contributor Author

@ramin why was it approved and then closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external Issues created by non node team members kind:testing Related to unit tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants