()
| 37 | } |
| 38 | |
| 39 | func 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 | |
| 57 | func Test_GeneratePostPayload(t *testing.T) { |
| 58 | t.Run("success", func(t *testing.T) { |
no test coverage detected