Skip to content

Add unit tests

Add unit tests #424

Triggered via pull request May 8, 2024 15:39
Status Failure
Total duration 2m 16s
Artifacts

pullrequests.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint: pkg/nl/nl_test.go#L1063
string `/addr_gen_mode` has 10 occurrences, make it a constant (goconst)
lint: pkg/nl/nl_test.go#L1069
string `/base_reachable_time_ms` has 12 occurrences, make it a constant (goconst)
lint: pkg/nl/nl_test.go#L1081
string `/arp_accept` has 3 occurrences, make it a constant (goconst)
lint: pkg/frr/frr_test.go#L31
string `/frr.conf` has 3 occurrences, make it a constant (goconst)
lint: pkg/nl/layer3.go#L146
receiver-naming: receiver name m should be consistent with previous receiver name n for Manager (revive)
lint: pkg/nl/layer3.go#L175
receiver-naming: receiver name m should be consistent with previous receiver name n for Manager (revive)
lint: pkg/frr/manager.go#L110
receiver-naming: receiver name n should be consistent with previous receiver name m for Manager (revive)
lint: pkg/frr/configure.go#L30
ST1016: methods on the same type should have the same receiver name (seen 1x "n", 7x "m") (stylecheck)
lint: pkg/nl/layer2.go#L203
ST1016: methods on the same type should have the same receiver name (seen 2x "m", 43x "n") (stylecheck)
lint
issues found