(t *testing.T)
| 52 | } |
| 53 | |
| 54 | func Test_bytesToInt64(t *testing.T) { |
| 55 | type args struct { |
| 56 | bys []byte |
| 57 | } |
| 58 | tests := []struct { |
| 59 | name string |
| 60 | args args |
| 61 | want int64 |
| 62 | }{ |
| 63 | { |
| 64 | name: "", |
| 65 | args: args{ |
| 66 | bys: int64ToBytes(1607237683018), |
| 67 | }, |
| 68 | want: 1607237683018, |
| 69 | }, |
| 70 | } |
| 71 | for _, tt := range tests { |
| 72 | t.Run(tt.name, func(t *testing.T) { |
| 73 | if got := bytesToInt64(tt.args.bys); got != tt.want { |
| 74 | t.Errorf("bytesToInt64() = %v, want %v", got, tt.want) |
| 75 | } |
| 76 | }) |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | func Test_int32ToString(t *testing.T) { |
| 81 | type args struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…