mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
20 lines
285 B
Go
20 lines
285 B
Go
package tests
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
"testing"
|
|
)
|
|
|
|
func TestMain(m *testing.M) {
|
|
// call flag.Parse() here if TestMain uses flags
|
|
s := SetupDefaultSuite()
|
|
result := m.Run()
|
|
Cleanup()
|
|
s.Cancel()
|
|
if result == 0 {
|
|
fmt.Fprintln(os.Stdout, "😀 👍 🎗")
|
|
}
|
|
os.Exit(result)
|
|
}
|