MCPcopy Index your code
hub / github.com/bytebase/bytebase / TestEncodeOperatorEmail

Function TestEncodeOperatorEmail

backend/plugin/db/bigquery/bigquery_test.go:9–36  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

7)
8
9func TestEncodeOperatorEmail(t *testing.T) {
10 tests := []struct {
11 email string
12 want string
13 }{
14 {
15 "hello@bb.com",
16 "hello_bb_com",
17 },
18 {
19 "Hello123@BB.com",
20 "hello123_bb_com",
21 },
22 {
23 "0123456789012345678901234567890123456789012345678901234567890123456789",
24 "012345678901234567890123456789012345678901234567890123456789012",
25 },
26 {
27 "012345678901234567890123456789012345678901234567890123456789012",
28 "012345678901234567890123456789012345678901234567890123456789012",
29 },
30 }
31
32 for _, test := range tests {
33 got := encodeOperatorEmail(test.email)
34 require.Equal(t, test.want, got)
35 }
36}

Callers

nothing calls this directly

Calls 2

encodeOperatorEmailFunction · 0.85
EqualMethod · 0.65

Tested by

no test coverage detected