mirror of
https://github.com/hanzoai/gateway.git
synced 2026-10-30 15:04:44 +00:00
25 lines
353 B
Go
25 lines
353 B
Go
package tests
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
func ExampleNewIntegration() {
|
|
runner, tcs, err := NewIntegration(nil, nil, nil)
|
|
if err != nil {
|
|
fmt.Println(err)
|
|
return
|
|
}
|
|
defer runner.Close()
|
|
|
|
for _, tc := range tcs {
|
|
if err := runner.Check(tc); err != nil {
|
|
fmt.Printf("%s: %s", tc.Name, err.Error())
|
|
return
|
|
}
|
|
}
|
|
|
|
// output:
|
|
// signal: killed
|
|
}
|