INNER CODE UNIT · Go
TestNewKubepug
kubepug/kubepug · lib/kubepug_test.go:19
func TestNewKubepug(t *testing.T) {
tests := []struct {
name string
config *Config
want *Kubepug
wantErr bool
}{
{
name: "null is an error",
config: nil,
want: nil,
wantErr: true,
},
{
name: "empty config should work",
config: &Config{},
want: &Kubepug{
Config: &Config{},