Browse Source

Added setup code for package-level tests.

multi-app-trie
Benjamin Shelton 4 months ago
parent
commit
50c0a8c089
1 changed files with 17 additions and 0 deletions
  1. +17
    -0
      package_test.go

+ 17
- 0
package_test.go View File

@ -0,0 +1,17 @@
package capstan
import (
"fmt"
"os"
"testing"
)
func TestMain(m *testing.M) {
err := initProxyTrie()
if err != nil {
fmt.Println("error running tests:", err)
os.Exit(1)
}
os.Exit(m.Run())
}

Loading…
Cancel
Save