Files
Roger 3e9150249c refactor: rename core types and spell out every name (#677)
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.
2026-11-02 11:06:05 +08:00

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()))
}