github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/database/package_test.go (about)

     1  // Copyright 2022 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package database
     5  
     6  import (
     7  	"testing"
     8  
     9  	"github.com/juju/loggo"
    10  	gc "gopkg.in/check.v1"
    11  )
    12  
    13  //go:generate go run go.uber.org/mock/mockgen -package database -destination network_mock_test.go github.com/juju/juju/core/network ConfigSource,ConfigSourceNIC,ConfigSourceAddr
    14  
    15  func Test(t *testing.T) {
    16  	gc.TestingT(t)
    17  }
    18  
    19  type stubLogger struct{}
    20  
    21  func (stubLogger) Errorf(string, ...interface{})            {}
    22  func (stubLogger) Warningf(string, ...interface{})          {}
    23  func (stubLogger) Debugf(string, ...interface{})            {}
    24  func (stubLogger) Logf(loggo.Level, string, ...interface{}) {}