MCPcopy Create free account
hub / github.com/devspace-sh/devspace / TestIsRootChild

Function TestIsRootChild

pkg/devspace/config/loader/patch/path_test.go:7–22  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

5)
6
7func TestIsRootChild(t *testing.T) {
8 testCases := map[OpPath]bool{
9 "": false,
10 ".baz": true,
11 "$baz": true,
12 "$": false,
13 "*.baz": false,
14 }
15
16 for input, expected := range testCases {
17 actual := input.isRootChild()
18 if expected != actual {
19 t.Errorf("TestCase %s\nactual:%t\nexpected:%t", input, actual, expected)
20 }
21 }
22}
23
24func TestGetChildName(t *testing.T) {
25 testCases := map[OpPath]string{

Callers

nothing calls this directly

Calls 2

isRootChildMethod · 0.80
ErrorfMethod · 0.45

Tested by

no test coverage detected