MCPcopy Create free account
hub / github.com/HumbleUI/Skija / serialize

Method serialize

tests/java/PathTest.java:285–290  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

283 }
284
285 public void serialize() {
286 try (Path p = new PathBuilder().lineTo(40, 40).lineTo(40, 0).lineTo(0, 40).lineTo(0, 0).closePath().build();) {
287 Path p2 = Path.makeFromBytes(p.serializeToBytes());
288 assertEquals(p, p2);
289 }
290 }
291
292 public void fillWithPaint() throws Exception {
293 try (var paint = new Paint();

Calls 6

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

Tested by

no test coverage detected