Skip to content

Commit

Permalink
Rename to utils_test to drop stretchr/testify dep
Browse files Browse the repository at this point in the history
I noticed that the pion-ice package had ~1MB of extra binary size due
to the dependency on stretchr/testify.

Renaming test_utils.go to utils_test.go removes stretchr/testify from
any non-test build and fixes this dependency. The tests still pass and
the package still builds the same.

One can check the dependency graph with goda:

https://github.com/loov/goda

goda graph "reach(.:all, github.com/stretchr/testify/require)" |\
    dot -Tsvg -o graph.svg

Signed-off-by: Christian Stewart <christian@aperture.us>
  • Loading branch information
paralin authored and Sean-Der committed Apr 10, 2024
1 parent fd4b1f8 commit 0860817
Showing 1 changed file with 0 additions and 0 deletions.
File renamed without changes.

0 comments on commit 0860817

Please sign in to comment.