(t *testing.T, apiURL string)
| 129 | } |
| 130 | |
| 131 | func cqpdTokenWithURL(t *testing.T, apiURL string) string { |
| 132 | t.Helper() |
| 133 | payload, err := json.Marshal(map[string]any{"u": apiURL}) |
| 134 | require.NoError(t, err) |
| 135 | return "cqpd_" + base64.RawURLEncoding.EncodeToString(payload) + ".sig" |
| 136 | } |
| 137 | |
| 138 | func cqpdTokenWithClaims(t *testing.T, claims map[string]any) string { |
| 139 | t.Helper() |
no outgoing calls
no test coverage detected