MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / randomEncryptionKey

Function randomEncryptionKey

tests/helpers_test.go:65–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63}
64
65func randomEncryptionKey() string {
66 b := make([]byte, 16)
67 _, err := rand.Read(b)
68 if err != nil {
69 return uuid.New().String()
70 }
71
72 return fmt.Sprintf("%x", b)
73}
74
75func setupPhone(ctx context.Context, t *testing.T, messagesPerMinute uint) testPhone {
76 t.Helper()

Callers 4

setupWebhookFunction · 0.85
TestSendSMS_EncryptedFunction · 0.85
TestReceiveSMS_EncryptedFunction · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected