- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TestClip (0.13 sec)
-
src/image/draw/clip_test.go
image.Rect(23, 23, 55, 86), image.Rect(44, 44, 87, 58), image.Pt(10, 10), image.Pt(11, 11), false, image.Rect(33, 33, 45, 47), image.Pt(43, 43), image.Pt(44, 44), }, } func TestClip(t *testing.T) { dst0 := image.NewRGBA(image.Rect(0, 0, 100, 100)) src0 := image.NewRGBA(image.Rect(0, 0, 100, 100)) mask0 := image.NewRGBA(image.Rect(0, 0, 100, 100)) for _, c := range clipTests {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 18:07:05 UTC 2023 - 4.4K bytes - Viewed (0) -
src/slices/slices_test.go
var gotPanic bool func() { defer func() { gotPanic = recover() != nil }() _ = Grow(s1, -1) }() if !gotPanic { t.Errorf("Grow(-1) did not panic; expected a panic") } } func TestClip(t *testing.T) { s1 := []int{1, 2, 3, 4, 5, 6}[:3] orig := Clone(s1) if len(s1) != 3 { t.Errorf("len(%v) = %d, want 3", s1, len(s1)) } if cap(s1) < 6 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 13:32:06 UTC 2024 - 33.2K bytes - Viewed (0)