mirror of https://bitbucket.org/ausocean/av.git
53 lines
583 B
Go
53 lines
583 B
Go
package psi
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
var (
|
|
patPsi = PSI{
|
|
Pf: 0x00,
|
|
Tid: 0x00,
|
|
Ssi: true,
|
|
Pb: false,
|
|
Sl: uint16(0x0d),
|
|
Tss: &TSS{
|
|
Tide: uint16(0x01),
|
|
V: 0,
|
|
Cni: true,
|
|
Sn: 0,
|
|
Lsn: 0,
|
|
Sd: &PAT{
|
|
Pn: uint16(0x01),
|
|
Pmpid: 16,
|
|
},
|
|
},
|
|
}
|
|
pmtPsi = PSI{
|
|
Pf: 0x00,
|
|
Tid: 0x02,
|
|
Ssi: true,
|
|
Sl: uint16(0x12),
|
|
Tss: & TSS{
|
|
Tide: uint16(0x01),
|
|
V:0,
|
|
Cni: true,
|
|
Sn: 0,
|
|
Lsn: 0,
|
|
Sd: &PMT{
|
|
Pcrpid: 16, // wrong
|
|
Pil: 0,
|
|
Essd: &ESSD{
|
|
St: 0x1b,
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
)
|
|
|
|
func TestReadPSI1(t *testing.T) {
|
|
|
|
}
|