Debian Codegraph @

testing/test.go

raw
1 /*
2 Copyright 2019 The logr Authors.
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 */
16
17 // Package testing provides support for using logr in tests.
18 // Deprecated. See github.com/go-logr/logr/testr instead.
19 package testing
20
21 import "github.com/go-logr/logr/testr"
22
23 // NewTestLogger returns a logr.Logger that prints through a testing.T object.
24 // Deprecated. See github.com/go-logr/logr/testr.New instead.
25 var NewTestLogger = testr.New
26
27 // Options carries parameters which influence the way logs are generated.
28 // Deprecated. See github.com/go-logr/logr/testr.Options instead.
29 type Options = testr.Options
30
31 // NewTestLoggerWithOptions returns a logr.Logger that prints through a testing.T object.
32 // Deprecated. See github.com/go-logr/logr/testr.NewWithOptions instead.
33 var NewTestLoggerWithOptions = testr.NewWithOptions
34
35 // Underlier exposes access to the underlying testing.T instance.
36 // Deprecated. See github.com/go-logr/logr/testr.Underlier instead.
37 type Underlier = testr.Underlier