summaryrefslogtreecommitdiff
path: root/workhorse/_support/detect-assert.sh
blob: 351cef763b5e34aa041a88c2c2dc29d3432d5cf6 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

git grep 'testify/assert"' | \
    grep -e '^[^:]*\.go' | \
    awk '{
  print "error: please use testify/require instead of testify/assert"
  print
  exit 1
}'