MCPcopy
hub / github.com/golang/geo / TestCellIDFromFace

Function TestCellIDFromFace

s2/cellid_test.go:27–35  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

25)
26
27func TestCellIDFromFace(t *testing.T) {
28 for face := range 6 {
29 fpl := CellIDFromFacePosLevel(face, 0, 0)
30 f := CellIDFromFace(face)
31 if fpl != f {
32 t.Errorf("CellIDFromFacePosLevel(%d, 0, 0) != CellIDFromFace(%d), got %v wanted %v", face, face, f, fpl)
33 }
34 }
35}
36
37func TestCellIDSentinelRangeMinMax(t *testing.T) {
38 s := SentinelCellID

Callers

nothing calls this directly

Calls 2

CellIDFromFacePosLevelFunction · 0.85
CellIDFromFaceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…