MCPcopy Create free account
hub / github.com/chanify/chanify / TestVerifyDevice

Function TestVerifyDevice

core/utils_test.go:51–59  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

49}
50
51func TestVerifyDevice(t *testing.T) {
52 w := httptest.NewRecorder()
53 ctx, _ := gin.CreateTestContext(w)
54 ctx.Request, _ = http.NewRequest("GET", "/", nil)
55 ctx.Request.Header.Set("CHDevSign", "*****")
56 if verifyDevice(ctx, "") {
57 t.Error("Check verify user failed")
58 }
59}
60
61func TestVerify(t *testing.T) {
62 if verifySign("***", []byte{}, []byte{}) {

Callers

nothing calls this directly

Calls 1

verifyDeviceFunction · 0.85

Tested by

no test coverage detected