Skip to content

add unittest

add unittest #4

Triggered via pull request February 4, 2025 17:41
Status Success
Total duration 1m 14s
Artifacts

test.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

22 warnings
test (1.23.x, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/linuxptp-daemon/linuxptp-daemon. Supported file pattern: go.sum
test (1.23.x, ubuntu-latest): addons/generic/generic.go#L1
should have a package comment
test (1.23.x, ubuntu-latest): pkg/pmc/pmc.go#L1
should have a package comment
test (1.23.x, ubuntu-latest): addons/mapping.go#L1
should have a package comment
test (1.23.x, ubuntu-latest): pkg/dpll-netlink/dpll-uapi.go#L4
should have a package comment
test (1.23.x, ubuntu-latest): pkg/debug/debug.go#L1
should have a package comment
test (1.23.x, ubuntu-latest): cmd/main.go#L1
should have a package comment
test (1.23.x, ubuntu-latest): addons/generic/generic.go#L57
parameter 'data' seems to be unused, consider removing or renaming it as _
test (1.23.x, ubuntu-latest): pkg/synce/synce.go#L1
should have a package comment
test (1.23.x, ubuntu-latest): pkg/ublox/types.go#L1
should have a package comment
test (1.23.x, ubuntu-latest): addons/mapping.go#L9
exported var PluginMapping should have comment or be unexported
test (1.22.x, ubuntu-latest): pkg/config/config.go#L28
struct field PhcId should be PhcID
test (1.22.x, ubuntu-latest): cmd/main.go#L166
var nodeProfilesJson should be nodeProfilesJSON
test (1.22.x, ubuntu-latest): pkg/config/config.go#L57
method parameter phcId should be phcID
test (1.22.x, ubuntu-latest): addons/mapping.go#L1
should have a package comment
test (1.22.x, ubuntu-latest): pkg/dpll/dpll.go#L24
don't use ALL_CAPS in Go names; use CamelCase
test (1.22.x, ubuntu-latest): pkg/config/config.go#L1
should have a package comment
test (1.22.x, ubuntu-latest): cmd/main.go#L161
if block ends with a continue statement, so drop this else and outdent its block
test (1.22.x, ubuntu-latest): pkg/dpll/dpll.go#L25
don't use ALL_CAPS in Go names; use CamelCase
test (1.22.x, ubuntu-latest): addons/mapping.go#L9
exported var PluginMapping should have comment or be unexported
test (1.22.x, ubuntu-latest): pkg/pmc/pmc.go#L1
should have a package comment
test (1.22.x, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/linuxptp-daemon/linuxptp-daemon. Supported file pattern: go.sum