uber-go / goleak

Goroutine leak detector
MIT License
4.48k stars 148 forks source link

options: Add IgnoreAnyFunction #113

Closed abhinav closed 10 months ago

abhinav commented 10 months ago

Adds a new IgnoreAnyFunction option to ignore stacks that have the provided function anywhere in the stack, not just the top.

To test this better, the helper blockedG.run function was split into two.

Supersedes #80 Depends on #111

codecov[bot] commented 10 months ago

Codecov Report

Merging #113 (fe4c855) into master (91de685) will increase coverage by 0.01%. Report is 1 commits behind head on master. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #113      +/-   ##
==========================================
+ Coverage   98.50%   98.52%   +0.01%     
==========================================
  Files           6        6              
  Lines         334      338       +4     
==========================================
+ Hits          329      333       +4     
  Misses          4        4              
  Partials        1        1              
Files Coverage Δ
options.go 100.00% <100.00%> (ø)
tracestack_new.go 100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more