MCPcopy Index your code
hub / github.com/HumbleUI/Skija / refCntToStringAfterClose

Method refCntToStringAfterClose

tests/java/ImageTest.java:58–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 }
57
58 public void refCntToStringAfterClose() throws Exception {
59 Bitmap bmp = new Bitmap();
60 bmp.allocN32Pixels(10, 20);
61 Image img = Image.makeRasterFromBitmap(bmp);
62 assertEquals(1, img.getRefCount());
63 img.toString();
64 img.close();
65 assertDoesNotThrow(() -> {
66 img.toString();
67 });
68 bmp.close();
69 }
70}

Callers

nothing calls this directly

Calls 7

allocN32PixelsMethod · 0.95
makeRasterFromBitmapMethod · 0.95
assertEqualsMethod · 0.80
getRefCountMethod · 0.80
assertDoesNotThrowMethod · 0.80
toStringMethod · 0.65
closeMethod · 0.45

Tested by

no test coverage detected