def test_PathEffect_asPoints(patheffect): results = skia.PathEffect.PointData() path = skia.Path() path.addCircle(10, 10, 5) rec = skia.StrokeRec(skia.StrokeRec.kHairline_InitStyle) matrix = skia.Matrix() assert isinstance(patheffect.asPoints(results, path, rec, matrix, None), bool)
def test_StrokeRec_hasEqualEffect(strokerec): assert isinstance( strokerec.hasEqualEffect( skia.StrokeRec(skia.StrokeRec.kHairline_InitStyle)), bool)
def strokerec(): return skia.StrokeRec(skia.StrokeRec.kHairline_InitStyle)
def test_PathEffect_filterPath(patheffect): dst = skia.Path() src = skia.Path() src.addCircle(10, 10, 5) rec = skia.StrokeRec(skia.StrokeRec.kHairline_InitStyle) assert isinstance(patheffect.filterPath(dst, src, rec, None), bool)
def test_StrokeRec_init(args): assert isinstance(skia.StrokeRec(*args), skia.StrokeRec)