main_test.go 244 B

123456789101112131415
  1. package integration
  2. import (
  3. "os"
  4. "testing"
  5. "github.com/imgproxy/imgproxy/v3"
  6. )
  7. // TestMain performs global setup/teardown for the integration tests.
  8. func TestMain(m *testing.M) {
  9. imgproxy.Init()
  10. os.Exit(m.Run())
  11. imgproxy.Shutdown()
  12. }