mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-12-04 05:43:27 +01:00
Def, Request, DirID, and Source said too little, and short variables and doc comments that skip their name hid intent. varnamelen and staticcheck ST1020-22 now keep both from coming back.
17 lines
294 B
Go
17 lines
294 B
Go
//go:build windows
|
|
|
|
package main
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
"golang.org/x/sys/windows"
|
|
)
|
|
|
|
func assertEndedByInterrupt(t *testing.T, state *os.ProcessState) {
|
|
t.Helper()
|
|
assert.Equal(t, uint32(windows.STATUS_CONTROL_C_EXIT), uint32(state.ExitCode()))
|
|
}
|