MCPcopy Create free account
hub / github.com/daodst/chat / fatalError

Function fatalError

test/db.go:38–44  ·  view source on GitHub ↗
(t *testing.T, format string, args ...interface{})

Source from the content-addressed store, hash-verified

36var Required = os.Getenv("DENDRITE_TEST_SKIP_NODB") == ""
37
38func fatalError(t *testing.T, format string, args ...interface{}) {
39 if Required {
40 t.Fatalf(format, args...)
41 } else {
42 t.Skipf(format, args...)
43 }
44}
45
46func createLocalDB(t *testing.T, dbName string) {
47 if _, err := exec.LookPath("createdb"); err != nil {

Callers 2

createLocalDBFunction · 0.85
createRemoteDBFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected