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

Method swap

tests/java/PathTest.java:265–272  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

263 }
264
265 public void swap() {
266 try (Path p1 = new Path().lineTo(40, 40).lineTo(40, 0).lineTo(0, 40).lineTo(0, 0).closePath();
267 Path p2 = new Path().lineTo(0, 0).lineTo(20, 20);) {
268 p1.swap(p2);
269 assertEquals(new Path().lineTo(0, 0).lineTo(20, 20), p1);
270 assertEquals(new Path().lineTo(40, 40).lineTo(40, 0).lineTo(0, 40).lineTo(0, 0).closePath(), p2);
271 }
272 }
273
274 public void contains() {
275 try (Path p = new Path().addRRect(RRect.makeLTRB(10, 20, 54, 120, 10, 20))) {

Callers

nothing calls this directly

Calls 3

closePathMethod · 0.80
lineToMethod · 0.80
assertEqualsMethod · 0.80

Tested by

no test coverage detected