MCPcopy Create free account
hub / github.com/NextDotID/proof_server / generateBase1024Encode

Function generateBase1024Encode

validator/telegram/telegram_test.go:39–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37}
38
39func generateBase1024Encode() Telegram {
40 pubkey, _ := mycrypto.StringToPubkey("0x04d7c5e01bedf1c993f40ec302d9bf162620daea93a7155cd9a8019ae3a2c2a476873e66c7ab9c5dbf9a6bd24ef4432298e70c5c7e7b148a54724a1d7b59e06bd8")
41 created_at, _ := util.TimestampStringToTime("1650883741")
42 return Telegram{
43 Base: &validator.Base{
44 Platform: types.Platforms.Telegram,
45 Previous: "",
46 Action: types.Actions.Create,
47 Pubkey: pubkey,
48 Identity: "SannieInMeta",
49 ProofLocation: "1518542666987819009",
50 Text: "",
51 Uuid: uuid.MustParse("223a5c86-540b-49b7-8674-94e04a390cd0"),
52 CreatedAt: created_at,
53 },
54 }
55}
56
57func Test_GeneratePostPayload(t *testing.T) {
58 t.Run("success", func(t *testing.T) {

Callers 1

Test_ValidateFunction · 0.70

Calls 1

TimestampStringToTimeFunction · 0.92

Tested by

no test coverage detected