Debian Codegraph @

test_cases/mock_image/mock_image.go

raw symbols SCIP
1 // This file was auto-generated using createmock. See the following page for
2 // more information:
3 //
4 // https://github.com/jacobsa/oglemock
5 //
6
7 package mock_image
8
9 import (
10 fmt "fmt"
11 oglemock "github.com/jacobsa/oglemock"
12 image "image"
13 color "image/color"
14 runtime "runtime"
15 unsafe "unsafe"
16 )
17
18 type MockImage interface {
19 image.Image
20 oglemock.MockObject
21 }
22
23 type mockImage struct {
24 controller oglemock.Controller
25 description string
26 }
27
28 func NewMockImage(
29 c oglemock.Controller,
30 desc string) MockImage {
31 return &mockImage{
32 controller: c,
33 description: desc,
34 }
35 }
36
37 func (m *mockImage) Oglemock_Id() uintptr {
38 return uintptr(unsafe.Pointer(m))
39 }
40
41 func (m *mockImage) Oglemock_Description() string {
42 return m.description
43 }
44
45 func (m *mockImage) At(p0 int, p1 int) (o0 color.Color) {
46 // Get a file name and line number for the caller.
47 _, file, line, _ := runtime.Caller(1)
48
49 // Hand the call off to the controller, which does most of the work.
50 retVals := m.controller.HandleMethodCall(
51 m,
52 "At",
53 file,
54 line,
55 []interface{}{p0, p1})
56
57 if len(retVals) != 1 {
58 panic(fmt.Sprintf("mockImage.At: invalid return values: %v", retVals))
59 }
60
61 // o0 color.Color
62 if retVals[0] != nil {
63 o0 = retVals[0].(color.Color)
64 }
65
66 return
67 }
68
69 func (m *mockImage) Bounds() (o0 image.Rectangle) {
70 // Get a file name and line number for the caller.
71 _, file, line, _ := runtime.Caller(1)
72
73 // Hand the call off to the controller, which does most of the work.
74 retVals := m.controller.HandleMethodCall(
75 m,
76 "Bounds",
77 file,
78 line,
79 []interface{}{})
80
81 if len(retVals) != 1 {
82 panic(fmt.Sprintf("mockImage.Bounds: invalid return values: %v", retVals))
83 }
84
85 // o0 image.Rectangle
86 if retVals[0] != nil {
87 o0 = retVals[0].(image.Rectangle)
88 }
89
90 return
91 }
92
93 func (m *mockImage) ColorModel() (o0 color.Model) {
94 // Get a file name and line number for the caller.
95 _, file, line, _ := runtime.Caller(1)
96
97 // Hand the call off to the controller, which does most of the work.
98 retVals := m.controller.HandleMethodCall(
99 m,
100 "ColorModel",
101 file,
102 line,
103 []interface{}{})
104
105 if len(retVals) != 1 {
106 panic(fmt.Sprintf("mockImage.ColorModel: invalid return values: %v", retVals))
107 }
108
109 // o0 color.Model
110 if retVals[0] != nil {
111 o0 = retVals[0].(color.Model)
112 }
113
114 return
115 }