MCPcopy
hub / github.com/redspread/spread / TestBaseNilObjects

Function TestBaseNilObjects

pkg/entity/entity_test.go:35–42  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

33}
34
35func TestBaseNilObjects(t *testing.T) {
36 objects := []deploy.KubeObject{
37 createSecret("test"),
38 nil, // illegal
39 }
40 _, err := newBase(EntityPod, kube.ObjectMeta{}, "source", objects)
41 assert.Error(t, err, "should not be able to create base with nil components")
42}
43
44func TestBaseNoDefaults(t *testing.T) {
45 defaults := kube.ObjectMeta{}

Callers

nothing calls this directly

Calls 2

newBaseFunction · 0.85
createSecretFunction · 0.70

Tested by

no test coverage detected