MCPcopy Create free account
hub / github.com/KOSASIH/skybridge / TestNodeConfig

Method TestNodeConfig

tools/test/test.go:50–64  ·  view source on GitHub ↗

TestNodeConfig tests the node configuration

()

Source from the content-addressed store, hash-verified

48
49// TestNodeConfig tests the node configuration
50func (t *Tester) TestNodeConfig() error {
51 log.Println("Testing node configuration")
52 // Perform tests on the node configuration
53 if t.nodeConfig.id == "" {
54 return fmt.Errorf("node ID is empty")
55 }
56
57 for _, neighbor := range t.nodeConfig.neighbors {
58 if neighbor.id == "" {
59 return fmt.Errorf("neighbor ID is empty")
60 }
61 }
62
63 return nil
64}
65
66// Test tests both the satellite and node configurations
67func (t *Tester) Test() error {

Callers 1

TestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected