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

Function randomPhoneNumber

tests/helpers_test.go:56–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54}
55
56func randomPhoneNumber() string {
57 n, err := rand.Int(rand.Reader, big.NewInt(10000))
58 if err != nil {
59 return "+18005550000"
60 }
61
62 return fmt.Sprintf("+1800555%04d", n.Int64())
63}
64
65func randomEncryptionKey() string {
66 b := make([]byte, 16)

Callers 7

setupPhoneFunction · 0.85
TestSendSMS_EncryptedFunction · 0.85
TestReceiveSMS_EncryptedFunction · 0.85
TestSendSMS_RateLimitFunction · 0.85
TestBulkSMS_CSVFunction · 0.85
TestBulkSMS_ExcelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected