Skip to content

Fix BenchmarkChacha20Poly1305: arg nonceSize shadowed package var #820

Fix BenchmarkChacha20Poly1305: arg nonceSize shadowed package var

Fix BenchmarkChacha20Poly1305: arg nonceSize shadowed package var #820

Workflow file for this run

on: [push, pull_request]
name: Test
jobs:
test:
strategy:
fail-fast: false
matrix:
go-version: [1.24.x, 1.25.x]
venv: [windows-2022, windows-2025, windows-11-arm]
fips: [1, 0]
runs-on: ${{ matrix.venv }}
steps:
- name: Install Go
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set FIPS mode
run: REG ADD HKLM\SYSTEM\CurrentControlSet\Control\Lsa\FipsAlgorithmPolicy /v Enabled /t REG_DWORD /f /d ${{ matrix.fips }}
- name: Run Test - Short
run: go test -v -gcflags=all=-d=checkptr -count 1 ./...
env:
GO_TEST_FIPS: ${{ matrix.fips }}
- name: Run Test - Long
# Run each test 10 times so the garbage collector chimes in
# and exercises the multiple finalizers we use.
# This can detect use-after-free and double-free issues.
run: go test -v -gcflags=all=-d=checkptr -count 10 -short ./...
env:
GO_TEST_FIPS: ${{ matrix.fips }}