MCPcopy Create free account
hub / github.com/facebook/time / TestEncodeMSM7Deterministic

Function TestEncodeMSM7Deterministic

rtcm/msm_encode_test.go:272–282  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

270 for _, finePhase := range d.finePhase {
271 require.NotEqual(t, int32(invalidFinePhase), finePhase)
272 }
273}
274
275func TestEncodeMSM7FiltersByConstellation(t *testing.T) {
276 obs := []RawxObservation{
277 gpsObs(4, 20000000, 105000000, -100, 45),
278 {PrMes: 22000000, CpMes: 115000000, DoMes: -200, GnssID: GnssGalileo, SvID: 11, SigID: 0, CNO: 40, PrValid: true, CpValid: true},
279 gpsObs(9, 21000000, 110000000, -300, 43),
280 }
281 d := decodeMSM7(t, mustEncodeAll(t, obs))
282 require.Equal(t, []int{4, 9}, d.sats, "only GPS satellites encoded")
283}
284
285func TestEncodeMSM7Deterministic(t *testing.T) {

Callers

nothing calls this directly

Calls 2

gpsObsFunction · 0.85
EncodeMSM7Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…