/
auto_mock.go
40 lines (29 loc) · 978 Bytes
/
auto_mock.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Code generated by "./generator ./session/org.deepin.dde.osd1"; DO NOT EDIT.
// SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later
package osd1
import "fmt"
import "github.com/godbus/dbus/v5"
import "github.com/linuxdeepin/go-lib/dbusutil/proxy"
import "github.com/stretchr/testify/mock"
type MockOSD struct {
MockInterfaceOsd // interface org.deepin.dde.Osd1
proxy.MockObject
}
type MockInterfaceOsd struct {
mock.Mock
}
// method ShowOSD
func (v *MockInterfaceOsd) GoShowOSD(flags dbus.Flags, ch chan *dbus.Call, osd string) *dbus.Call {
mockArgs := v.Called(flags, ch, osd)
ret, ok := mockArgs.Get(0).(*dbus.Call)
if !ok {
panic(fmt.Sprintf("assert: arguments: 0 failed because object wasn't correct type: %v", mockArgs.Get(0)))
}
return ret
}
func (v *MockInterfaceOsd) ShowOSD(flags dbus.Flags, osd string) error {
mockArgs := v.Called(flags, osd)
return mockArgs.Error(0)
}