you are viewing a single comment's thread
view the rest of the comments
[–] 0 points 1 year ago

It's not a dependency, though. I mean, it could be, but you can just ssd easily rewrite or copy/paste; his repos is basically a single for with a half dozen functions. It's a hundred LOC, or something. Copy the file, change the package. A little copying.

I usually just re-implement the asserts as I need them, but copying this one for over into your project introduces no dependencies. If you import testify, you now have dependencies on

  • testify
  • github.com/davecgh/go-spew
  • github.com/pmezard/go-difflib
  • github.com/stretchr/objx
  • gopkg.in/yaml.v3

because that's what testify imports.

It's not the same, at all.

  • source
  • parent