MCPcopy Create free account
hub / github.com/celer-pkg/celer / TestDepCheck_CheckCircular_Normal

Function TestDepCheck_CheckCircular_Normal

depcheck/depcheck_circular_test.go:11–37  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestDepCheck_CheckCircular_Normal(t *testing.T) {
12 // Convenient checkError function.
13 var checkError = func(err error) {
14 t.Helper()
15 if err != nil {
16 t.Fatal(err)
17 }
18 }
19
20 // Set test workspace dir.
21 currentDir, err := os.Getwd()
22 if err != nil {
23 t.Fatal(err)
24 }
25 dirs.Init(filepath.Join(currentDir, "testdata/depcheck/circular/normal"))
26
27 celer := configs.NewCeler()
28 checkError(celer.Init())
29
30 var port configs.Port
31 checkError(port.Init(celer, "aaa@1.0.0"))
32
33 depcheck := NewDepCheck()
34 if err := depcheck.CheckCircular(celer, port); err != nil {
35 t.Fatal(err)
36 }
37}
38
39func TestDepCheck_CheckCircular_Dependencies(t *testing.T) {
40 // Convenient checkError function.

Callers

nothing calls this directly

Calls 6

InitMethod · 0.95
InitMethod · 0.95
InitFunction · 0.92
NewCelerFunction · 0.92
NewDepCheckFunction · 0.85
CheckCircularMethod · 0.65

Tested by

no test coverage detected