package auth import ( "os" "testing" ) // readHandlerSource reads this package's handler for the structural status code guard. The defect it pins // lived in the choice of constant rather than in behaviour a unit test could reach without a live session. func readHandlerSource(t *testing.T) string { t.Helper() b, err := os.ReadFile("handler.go") if err != nil { t.Fatalf("read handler.go: %v", err) } return string(b) }