Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. My file hierarchy goes like:
  2. --api
  3. --storage
  4. --A
  5. --A.go
  6. --A_test.go
  7. --B
  8. --C
  9. --server
  10. --A
  11. --testData
  12. --A.sql
  13. --B.sql
  14.  
  15. go test ./...
  16.  
  17. db.Exec("SET FOREIGN_KEY_CHECKS = 0;")
  18. db.Exec("truncate " + table)
  19. db.Exec("SET FOREIGN_KEY_CHECKS = 1;")
  20.  
  21. go test ./... -p 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement