// Code generated by "./generator ./com.deepin.dataserver.Calendar"; DO NOT EDIT.

// SPDX-FileCopyrightText: 2018 - 2022 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later
package Calendar

import (
	"fmt"

	"github.com/godbus/dbus"
	"github.com/linuxdeepin/go-lib/dbusutil/proxy"
	"github.com/stretchr/testify/mock"
)

type MockHuangLi struct {
	MockInterfaceHuangLi // interface com.deepin.dataserver.Calendar
	proxy.MockObject
}

type MockInterfaceHuangLi struct {
	mock.Mock
}

// method GetFestivalMonth

func (v *MockInterfaceHuangLi) GoGetFestivalMonth(flags dbus.Flags, ch chan *dbus.Call, year int32, month int32) *dbus.Call {
	mockArgs := v.Called(flags, ch, year, month)

	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 *MockInterfaceHuangLi) GetFestivalMonth(flags dbus.Flags, year int32, month int32) (string, error) {
	mockArgs := v.Called(flags, year, month)

	return mockArgs.String(0), mockArgs.Error(1)
}

// method GetFestivalsInRange

func (v *MockInterfaceHuangLi) GoGetFestivalsInRange(flags dbus.Flags, ch chan *dbus.Call, startDate string, endDate string) *dbus.Call {
	mockArgs := v.Called(flags, ch, startDate, endDate)

	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 *MockInterfaceHuangLi) GetFestivalsInRange(flags dbus.Flags, startDate string, endDate string) ([]DayFestival, error) {
	mockArgs := v.Called(flags, startDate, endDate)

	ret0, ok := mockArgs.Get(0).([]DayFestival)
	if !ok {
		panic(fmt.Sprintf("assert: arguments: %d failed because object wasn't correct type: %v", 0, mockArgs.Get(0)))
	}

	return ret0, mockArgs.Error(1)
}

// method GetHuangLiDay

func (v *MockInterfaceHuangLi) GoGetHuangLiDay(flags dbus.Flags, ch chan *dbus.Call, year int32, month int32, day int32) *dbus.Call {
	mockArgs := v.Called(flags, ch, year, month, day)

	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 *MockInterfaceHuangLi) GetHuangLiDay(flags dbus.Flags, year int32, month int32, day int32) (string, error) {
	mockArgs := v.Called(flags, year, month, day)

	return mockArgs.String(0), mockArgs.Error(1)
}

// method GetHuangLiMonth

func (v *MockInterfaceHuangLi) GoGetHuangLiMonth(flags dbus.Flags, ch chan *dbus.Call, year int32, month int32, fill bool) *dbus.Call {
	mockArgs := v.Called(flags, ch, year, month, fill)

	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 *MockInterfaceHuangLi) GetHuangLiMonth(flags dbus.Flags, year int32, month int32, fill bool) (string, error) {
	mockArgs := v.Called(flags, year, month, fill)

	return mockArgs.String(0), mockArgs.Error(1)
}
