Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/missionmatch / internal/modules/auth/status_helper_test.go |
| Date | Not specified in source |
| Repository | Janady13/missionmatch |
| Revision | 720d47fae476b0d38477ae4401697d372b1ea2bc |
| Branch | feature/opportunity-to-outcome |
| Path or archive member | internal/modules/auth/status_helper_test.go |
| Original SHA-256 | eb8db22af89aadc0d655c1a8d50121ba6597bd78ae3d27de2590be9c8c6bdaa8 |
| Git blob SHA | 6ce947218915990f3ac1770a8fcd5be09801a433 |
| Reading-copy SHA-256 | eb8db22af89aadc0d655c1a8d50121ba6597bd78ae3d27de2590be9c8c6bdaa8 |
Recovered source transcript
Download complete source text ↓18 lines · 0.4 KB
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)
}