mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
17 lines
424 B
Go
17 lines
424 B
Go
// Copyright 2022 Molecula Corp. (DBA FeatureBase).
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//go:build go1.14
|
|
// +build go1.14
|
|
|
|
package testhook
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
// Cleanup in 1.13 logs a message about skipping a cleanup function, but
|
|
// allows things to build. Cleanup in 1.14 uses tb.Cleanup to register
|
|
// a cleanup function to call when a test completes.
|
|
func Cleanup(tb testing.TB, fn func()) {
|
|
tb.Cleanup(fn)
|
|
}
|