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

Function mustEncode

rtcm/msm_encode_test.go:284–290  ·  view source on GitHub ↗
(t *testing.T, obs RawxObservation)

Source from the content-addressed store, hash-verified

282 require.Equal(t, []int{4, 9}, d.sats, "only GPS satellites encoded")
283}
284
285func TestEncodeMSM7Deterministic(t *testing.T) {
286 obs := []RawxObservation{
287 gpsObs(10, 22000000, 115600000, -2000, 45),
288 gpsObs(15, 24000000, 126100000, -1500, 42),
289 }
290 a, err := EncodeMSM7(1, GnssGPS, 200000000, obs)
291 require.NoError(t, err)
292 b, err := EncodeMSM7(1, GnssGPS, 200000000, obs)
293 require.NoError(t, err)

Callers 1

Calls 1

EncodeMSM7Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…