()
| 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))) { |
nothing calls this directly
no test coverage detected