(t *testing.T)
| 26 | ) |
| 27 | |
| 28 | func Test_bytesToInt32(t *testing.T) { |
| 29 | type args struct { |
| 30 | bys []byte |
| 31 | } |
| 32 | tests := []struct { |
| 33 | name string |
| 34 | args args |
| 35 | want int32 |
| 36 | }{ |
| 37 | { |
| 38 | name: "", |
| 39 | args: args{ |
| 40 | bys: int32ToBytes(65535), |
| 41 | }, |
| 42 | want: 65535, |
| 43 | }, |
| 44 | } |
| 45 | for _, tt := range tests { |
| 46 | t.Run(tt.name, func(t *testing.T) { |
| 47 | if got := bytesToInt32(tt.args.bys); got != tt.want { |
| 48 | t.Errorf("bytesToInt32() = %v, want %v", got, tt.want) |
| 49 | } |
| 50 | }) |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | func Test_bytesToInt64(t *testing.T) { |
| 55 | type args struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…