mirror of https://bitbucket.org/ausocean/av.git
psi: removing uneccessary conversion in psi_test.go
This commit is contained in:
parent
b2b5db1f1f
commit
83e4a4c5c5
|
@ -60,11 +60,11 @@ var (
|
||||||
var (
|
var (
|
||||||
pmtTimeLocationBytesPart1 = []byte{
|
pmtTimeLocationBytesPart1 = []byte{
|
||||||
0x00, 0x02, 0xb0, 0x12, 0x00, 0x01, 0xc1, 0x00, 0x00, 0xe1, 0x00, 0xf0, 0x0a,
|
0x00, 0x02, 0xb0, 0x12, 0x00, 0x01, 0xc1, 0x00, 0x00, 0xe1, 0x00, 0xf0, 0x0a,
|
||||||
byte(timeDescTag), // Descriptor tag for timestamp
|
timeDescTag, // Descriptor tag for timestamp
|
||||||
byte(timeDataSize), // Length of bytes to follow
|
timeDataSize, // Length of bytes to follow
|
||||||
0x00, 0x00, 0x00, 0x00, 0x67, 0x6F, 0x74, 0x5F, // Timestamp data
|
0x00, 0x00, 0x00, 0x00, 0x67, 0x6F, 0x74, 0x5F, // Timestamp data
|
||||||
byte(locationDescTag), // Descriptor tag for location
|
locationDescTag, // Descriptor tag for location
|
||||||
byte(locationDataSize), // Length of bytes to follow
|
locationDataSize, // Length of bytes to follow
|
||||||
}
|
}
|
||||||
pmtTimeLocationBytesPart2 = []byte{
|
pmtTimeLocationBytesPart2 = []byte{
|
||||||
0x1b, 0xe1, 0x00, 0xf0, 0x00,
|
0x1b, 0xe1, 0x00, 0xf0, 0x00,
|
||||||
|
@ -75,8 +75,8 @@ var (
|
||||||
// Bytes representing pmt with tstTime1
|
// Bytes representing pmt with tstTime1
|
||||||
pmtTimeBytes1 = []byte{
|
pmtTimeBytes1 = []byte{
|
||||||
0x00, 0x02, 0xb0, 0x12, 0x00, 0x01, 0xc1, 0x00, 0x00, 0xe1, 0x00, 0xf0, 0x0a,
|
0x00, 0x02, 0xb0, 0x12, 0x00, 0x01, 0xc1, 0x00, 0x00, 0xe1, 0x00, 0xf0, 0x0a,
|
||||||
byte(timeDescTag), // Descriptor tag
|
timeDescTag, // Descriptor tag
|
||||||
byte(timeDataSize), // Length of bytes to follow
|
timeDataSize, // Length of bytes to follow
|
||||||
0x00, 0x00, 0x00, 0x00, 0x49, 0xA2, 0x36, 0x0B, // timestamp
|
0x00, 0x00, 0x00, 0x00, 0x49, 0xA2, 0x36, 0x0B, // timestamp
|
||||||
0x1b, 0xe1, 0x00, 0xf0, 0x00,
|
0x1b, 0xe1, 0x00, 0xf0, 0x00,
|
||||||
}
|
}
|
||||||
|
@ -84,8 +84,8 @@ var (
|
||||||
// Bytes representing pmt with tstTime 2
|
// Bytes representing pmt with tstTime 2
|
||||||
pmtTimeBytes2 = []byte{
|
pmtTimeBytes2 = []byte{
|
||||||
0x00, 0x02, 0xb0, 0x12, 0x00, 0x01, 0xc1, 0x00, 0x00, 0xe1, 0x00, 0xf0, 0x0a,
|
0x00, 0x02, 0xb0, 0x12, 0x00, 0x01, 0xc1, 0x00, 0x00, 0xe1, 0x00, 0xf0, 0x0a,
|
||||||
byte(timeDescTag), // Descriptor tag
|
timeDescTag, // Descriptor tag
|
||||||
byte(timeDataSize), // Length of bytes to follow
|
timeDataSize, // Length of bytes to follow
|
||||||
0x00, 0x00, 0x00, 0x00, 0x67, 0x6F, 0x74, 0x5F, // timestamp
|
0x00, 0x00, 0x00, 0x00, 0x67, 0x6F, 0x74, 0x5F, // timestamp
|
||||||
0x1b, 0xe1, 0x00, 0xf0, 0x00,
|
0x1b, 0xe1, 0x00, 0xf0, 0x00,
|
||||||
}
|
}
|
||||||
|
@ -124,9 +124,9 @@ var bytesTests = []struct {
|
||||||
Pf: 0x00,
|
Pf: 0x00,
|
||||||
Tid: 0x02,
|
Tid: 0x02,
|
||||||
Ssi: true,
|
Ssi: true,
|
||||||
Sl: uint16(0x12),
|
Sl: 0x12,
|
||||||
Tss: &TSS{
|
Tss: &TSS{
|
||||||
Tide: uint16(0x01),
|
Tide: 0x01,
|
||||||
V: 0,
|
V: 0,
|
||||||
Cni: true,
|
Cni: true,
|
||||||
Sn: 0,
|
Sn: 0,
|
||||||
|
@ -136,8 +136,8 @@ var bytesTests = []struct {
|
||||||
Pil: 10,
|
Pil: 10,
|
||||||
Pd: []Desc{
|
Pd: []Desc{
|
||||||
Desc{
|
Desc{
|
||||||
Dt: byte(timeDescTag),
|
Dt: timeDescTag,
|
||||||
Dl: byte(timeDataSize),
|
Dl: timeDataSize,
|
||||||
Dd: TimeBytes(tstTime1),
|
Dd: TimeBytes(tstTime1),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -159,9 +159,9 @@ var bytesTests = []struct {
|
||||||
Pf: 0x00,
|
Pf: 0x00,
|
||||||
Tid: 0x02,
|
Tid: 0x02,
|
||||||
Ssi: true,
|
Ssi: true,
|
||||||
Sl: uint16(0x12),
|
Sl: 0x12,
|
||||||
Tss: &TSS{
|
Tss: &TSS{
|
||||||
Tide: uint16(0x01),
|
Tide: 0x01,
|
||||||
V: 0,
|
V: 0,
|
||||||
Cni: true,
|
Cni: true,
|
||||||
Sn: 0,
|
Sn: 0,
|
||||||
|
@ -171,13 +171,13 @@ var bytesTests = []struct {
|
||||||
Pil: 10,
|
Pil: 10,
|
||||||
Pd: []Desc{
|
Pd: []Desc{
|
||||||
Desc{
|
Desc{
|
||||||
Dt: byte(timeDescTag),
|
Dt: timeDescTag,
|
||||||
Dl: byte(timeDataSize),
|
Dl: timeDataSize,
|
||||||
Dd: TimeBytes(tstTime2),
|
Dd: TimeBytes(tstTime2),
|
||||||
},
|
},
|
||||||
Desc{
|
Desc{
|
||||||
Dt: byte(locationDescTag),
|
Dt: locationDescTag,
|
||||||
Dl: byte(locationDataSize),
|
Dl: locationDataSize,
|
||||||
Dd: LocationStrBytes(locationTstStr1),
|
Dd: LocationStrBytes(locationTstStr1),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue