Skip to content

Add unit tests for Controlsvc #2273

Add unit tests for Controlsvc

Add unit tests for Controlsvc #2273

Triggered via pull request September 20, 2023 19:08
Status Failure
Total duration 3m 38s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

pull_request.yml

on: pull_request
Matrix: receptor
Matrix: receptorctl
Fit to window
Zoom out
Zoom in

Annotations

26 errors and 6 warnings
lint-receptor: pkg/controlsvc/controlsvc.go#L87
Comment should end in a period (godot)
lint-receptor: pkg/controlsvc/controlsvc.go#L98
Comment should end in a period (godot)
lint-receptor: pkg/controlsvc/controlsvc.go#L106
return with no blank line before (nlreturn)
lint-receptor: pkg/controlsvc/controlsvc.go#L216
return with no blank line before (nlreturn)
lint-receptor: pkg/controlsvc/controlsvc.go#L221
return with no blank line before (nlreturn)
lint-receptor
issues found
receptor (Go 1.20): pkg/controlsvc/interfaces.go#L39
undefined: Utiler
receptor (Go 1.20): pkg/controlsvc/interfaces.go#L40
undefined: Copier
receptor (Go 1.20): pkg/controlsvc/connect.go#L86
undefined: Util
receptor (Go 1.20)
Process completed with exit code 2.
receptor (Go 1.20)
Process completed with exit code 1.
receptor (Go 1.20)
Cannot open: File exists
receptor (Go 1.20)
Cannot open: File exists
receptor (Go 1.20)
Cannot open: File exists
receptor (Go 1.20)
Cannot open: File exists
receptor (Go 1.20)
Cannot open: File exists
receptor (Go 1.20)
Cannot open: File exists
receptor (Go 1.20)
Cannot open: File exists
receptor (Go 1.20)
Cannot open: File exists
receptor (Go 1.20)
Cannot open: File exists
receptor (Go 1.20)
Cannot open: File exists
receptor (Go 1.19)
Process completed with exit code 1.
receptor (Go 1.19): pkg/controlsvc/interfaces.go#L39
undefined: Utiler
receptor (Go 1.19): pkg/controlsvc/interfaces.go#L40
undefined: Copier
receptor (Go 1.19): pkg/controlsvc/connect.go#L86
undefined: Util
receptor (Go 1.19)
Process completed with exit code 2.
lint-receptor: pkg/controlsvc/controlsvc.go#L76
var-naming: type Tls should be TLS (revive)
lint-receptor: pkg/controlsvc/controlsvc.go#L157
var-naming: struct field serverTls should be serverTLS (revive)
lint-receptor: pkg/controlsvc/controlsvc.go#L189
var-naming: method SetServerTls should be SetServerTLS (revive)
receptor (Go 1.20)
No files were found with the provided path: /tmp/receptor-testing. No artifacts will be uploaded.
receptor (Go 1.20)
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
receptor (Go 1.19)
No files were found with the provided path: /tmp/receptor-testing. No artifacts will be uploaded.