Debian Codegraph @

internal/testutils/iface.go

raw
1 // SPDX-License-Identifier: MPL-2.0
2
3 // Copyright (C) 2024-2025 Aleksa Sarai <[email protected]>
4 // Copyright (C) 2024-2025 SUSE LLC
5 //
6 // This Source Code Form is subject to the terms of the Mozilla Public
7 // License, v. 2.0. If a copy of the MPL was not distributed with this
8 // file, You can obtain one at https://mozilla.org/MPL/2.0/.
9
10 // Package testutils provides some internal helpers for tests.
11 package testutils
12
13 import (
14 "github.com/stretchr/testify/assert"
15 "github.com/stretchr/testify/require"
16 )
17
18 // TestingT is an interface wrapper around *testing.T.
19 type TestingT interface {
20 assert.TestingT
21 require.TestingT
22
23 TempDir() string
24 Fatalf(format string, args ...any)
25 Skip(args ...any)
26 }