MCPcopy Create free account
hub / github.com/cogentcore/core / GetTestPath

Function GetTestPath

paint/raster/raster_test.go:79–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77}
78
79func GetTestPath() (testPath Path) {
80 //Path for Q
81 testPath = getPartPath()
82
83 testPath.ToSVGPath()
84
85 //M162.22,109.69 M162.22,109.69
86 testPath.Start(ToFixedP(162.22, 109.69))
87 //Q162.22,70.11,145.61,48.55
88 testPath.QuadBezier(ToFixedP(162.22, 70.11), ToFixedP(145.61, 48.55))
89 //Q129.00,27.00,98.42,27.00
90 testPath.QuadBezier(ToFixedP(129.00, 27.00), ToFixedP(98.42, 27.00))
91 //Q69.14,27.00,52.53,48.62
92 testPath.QuadBezier(ToFixedP(69.14, 27.00), ToFixedP(52.53, 48.62))
93 //Q35.92,70.25,35.92,108.50
94 testPath.QuadBezier(ToFixedP(35.92, 70.25), ToFixedP(35.92, 108.50))
95 //Q35.92,146.75,52.53,168.38
96 testPath.QuadBezier(ToFixedP(35.92, 146.75), ToFixedP(52.53, 168.38))
97 //Q69.14,190.00,98.42,190.00
98 testPath.QuadBezier(ToFixedP(69.14, 190.00), ToFixedP(98.42, 190.00))
99 //Q128.34,190.00,145.28,168.70
100 testPath.QuadBezier(ToFixedP(128.34, 190.00), ToFixedP(145.28, 168.70))
101 //Q162.22,147.41,162.22,109.69
102 testPath.QuadBezier(ToFixedP(162.22, 147.41), ToFixedP(162.22, 109.69))
103 //z
104 testPath.Stop(true)
105
106 return
107}
108
109func BenchmarkScan(b *testing.B) {
110 var (

Callers 4

BenchmarkScanFunction · 0.85
BenchmarkFillFunction · 0.85
BenchmarkDashFunction · 0.85
TestMultiFunctionFunction · 0.85

Calls 6

getPartPathFunction · 0.85
ToFixedPFunction · 0.85
ToSVGPathMethod · 0.80
StartMethod · 0.65
QuadBezierMethod · 0.65
StopMethod · 0.65

Tested by

no test coverage detected