Skip to content

Add Test Coverage for SatisfiedPolicy and enhance SpendPolicy tests #22

Add Test Coverage for SatisfiedPolicy and enhance SpendPolicy tests

Add Test Coverage for SatisfiedPolicy and enhance SpendPolicy tests #22

Triggered via pull request March 20, 2024 16:35
Status Failure
Total duration 37s
Artifacts

test.yml

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

Annotations

20 errors and 1 warning
test (ubuntu-latest, 1.20): types/currency.go#L62
ifElseChain: rewrite if-else to switch statement (gocritic)
test (ubuntu-latest, 1.20): types/currency.go#L289
ifElseChain: rewrite if-else to switch statement (gocritic)
test (ubuntu-latest, 1.20): types/policy.go#L288
ifElseChain: rewrite if-else to switch statement (gocritic)
test (ubuntu-latest, 1.20): types/policy.go#L321
ifElseChain: rewrite if-else to switch statement (gocritic)
test (ubuntu-latest, 1.20): types/policy.go#L261
unslice: could simplify pk.Key[:] to pk.Key (gocritic)
test (ubuntu-latest, 1.20): types/types.go#L807
unslice: could simplify data[:] to data (gocritic)
test (ubuntu-latest, 1.20): types/types.go#L900
unslice: could simplify uk.Key[:] to uk.Key (gocritic)
test (ubuntu-latest, 1.20): consensus/state.go#L239
ifElseChain: rewrite if-else to switch statement (gocritic)
test (ubuntu-latest, 1.20): consensus/validation.go#L15
ifElseChain: rewrite if-else to switch statement (gocritic)
test (ubuntu-latest, 1.20): consensus/validation.go#L185
ifElseChain: rewrite if-else to switch statement (gocritic)
test (ubuntu-latest, 1.21)
The job was canceled because "ubuntu-latest_1_20" failed.
test (ubuntu-latest, 1.21)
The operation was canceled.
test (windows-latest, 1.21)
The job was canceled because "ubuntu-latest_1_20" failed.
test (windows-latest, 1.21)
The operation was canceled.
test (macos-latest, 1.20)
The job was canceled because "ubuntu-latest_1_20" failed.
test (macos-latest, 1.20)
The operation was canceled.
test (windows-latest, 1.20)
The job was canceled because "ubuntu-latest_1_20" failed.
test (windows-latest, 1.20)
The operation was canceled.
test (macos-latest, 1.21)
The job was canceled because "ubuntu-latest_1_20" failed.
test (macos-latest, 1.21)
The operation was canceled.
test (ubuntu-latest, 1.20)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v3, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.