MCPcopy Index your code
hub / github.com/golang/geo / TestTextFormatShapeIndexDebugStringRoundTrip

Function TestTextFormatShapeIndexDebugStringRoundTrip

s2/textformat_test_test.go:479–500  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

477}
478
479func TestTextFormatShapeIndexDebugStringRoundTrip(t *testing.T) {
480 // TODO(rsned): Incorporate the roundtripPrecision parameter to the tests.
481 tests := []string{
482 "# #",
483 "0:0 # #",
484 "0:0 | 1:0 # #",
485 "0:0 | 1:0 # #",
486 "# 0:0, 0:0 #",
487 "# 0:0, 0:0 | 1:0, 2:0 #",
488 "# # 0:0",
489 "# # 0:0, 0:1",
490 "# # 0:0, 0:1, 1:0",
491 "# # 0:0, 0:1, 1:0, 2:2",
492 "# # full",
493 }
494
495 for _, want := range tests {
496 if got := shapeIndexDebugString(makeShapeIndex(want), false); got != want {
497 t.Errorf("ShapeIndex failed roundtrip to string. got %q, want %q", got, want)
498 }
499 }
500}
501
502// TODO(roberts): Remaining tests
503// to debug string tests for

Callers

nothing calls this directly

Calls 2

shapeIndexDebugStringFunction · 0.85
makeShapeIndexFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…