MCPcopy Create free account
hub / github.com/devfile/api / TestSimplifyingUnion

Function TestSimplifyingUnion

pkg/apis/workspaces/v1alpha1/union_test.go:63–78  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

61}
62
63func TestSimplifyingUnion(t *testing.T) {
64 original := ProjectSource{
65 Git: &GitProjectSource{},
66 SourceType: "Git",
67 }
68 expected := ProjectSource{
69 Git: &GitProjectSource{},
70 }
71
72 original.Simplify()
73
74 assert.Equal(t,
75 expected,
76 original,
77 "The two values should be the same.")
78}

Callers

nothing calls this directly

Calls 1

SimplifyMethod · 0.95

Tested by

no test coverage detected