MCPcopy Create free account
hub / github.com/JetBrains/skija / serialize

Method serialize

tests/java/PathTest.java:317–322  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

315 }
316
317 public void serialize() {
318 try (Path p = new Path().lineTo(40, 40).lineTo(40, 0).lineTo(0, 40).lineTo(0, 0).closePath();) {
319 Path p2 = Path.makeFromBytes(p.serializeToBytes());
320 assertEquals(p, p2);
321 }
322 }
323}

Calls 5

makeFromBytesMethod · 0.95
closePathMethod · 0.80
lineToMethod · 0.80
serializeToBytesMethod · 0.80
assertEqualsMethod · 0.80

Tested by

no test coverage detected