mocks

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeBrowserAutomation

type FakeBrowserAutomation struct {
	ClickElementStub func(context.Context, string, string, map[string]any) error

	CloseBrowserStub func(context.Context, string) error

	ExecuteScriptStub func(context.Context, string, string, []any) (any, error)

	ExtractDataStub func(context.Context, string, []map[string]any, string) (string, error)

	FillFormStub func(context.Context, string, []map[string]any, bool, string) error

	GetConfigStub func() *config.Config

	GetHealthStub func(context.Context) error

	GetOrCreateDefaultSessionStub func(context.Context) (*playwright.BrowserSession, error)

	GetSessionStub func(string) (*playwright.BrowserSession, error)

	HandleAuthenticationStub func(context.Context, string, string, string, string, string, map[string]string) error

	LaunchBrowserStub func(context.Context, *playwright.BrowserConfig) (*playwright.BrowserSession, error)

	NavigateToURLStub func(context.Context, string, string, string, time.Duration) error

	ShutdownStub func(context.Context) error

	TakeScreenshotStub func(context.Context, string, string, bool, string, string, int) error

	WaitForConditionStub func(context.Context, string, string, string, string, time.Duration, string) error
	// contains filtered or unexported fields
}

func (*FakeBrowserAutomation) ClickElement

func (fake *FakeBrowserAutomation) ClickElement(arg1 context.Context, arg2 string, arg3 string, arg4 map[string]any) error

func (*FakeBrowserAutomation) ClickElementArgsForCall

func (fake *FakeBrowserAutomation) ClickElementArgsForCall(i int) (context.Context, string, string, map[string]any)

func (*FakeBrowserAutomation) ClickElementCallCount

func (fake *FakeBrowserAutomation) ClickElementCallCount() int

func (*FakeBrowserAutomation) ClickElementCalls

func (fake *FakeBrowserAutomation) ClickElementCalls(stub func(context.Context, string, string, map[string]any) error)

func (*FakeBrowserAutomation) ClickElementReturns

func (fake *FakeBrowserAutomation) ClickElementReturns(result1 error)

func (*FakeBrowserAutomation) ClickElementReturnsOnCall

func (fake *FakeBrowserAutomation) ClickElementReturnsOnCall(i int, result1 error)

func (*FakeBrowserAutomation) CloseBrowser

func (fake *FakeBrowserAutomation) CloseBrowser(arg1 context.Context, arg2 string) error

func (*FakeBrowserAutomation) CloseBrowserArgsForCall

func (fake *FakeBrowserAutomation) CloseBrowserArgsForCall(i int) (context.Context, string)

func (*FakeBrowserAutomation) CloseBrowserCallCount

func (fake *FakeBrowserAutomation) CloseBrowserCallCount() int

func (*FakeBrowserAutomation) CloseBrowserCalls

func (fake *FakeBrowserAutomation) CloseBrowserCalls(stub func(context.Context, string) error)

func (*FakeBrowserAutomation) CloseBrowserReturns

func (fake *FakeBrowserAutomation) CloseBrowserReturns(result1 error)

func (*FakeBrowserAutomation) CloseBrowserReturnsOnCall

func (fake *FakeBrowserAutomation) CloseBrowserReturnsOnCall(i int, result1 error)

func (*FakeBrowserAutomation) ExecuteScript

func (fake *FakeBrowserAutomation) ExecuteScript(arg1 context.Context, arg2 string, arg3 string, arg4 []any) (any, error)

func (*FakeBrowserAutomation) ExecuteScriptArgsForCall

func (fake *FakeBrowserAutomation) ExecuteScriptArgsForCall(i int) (context.Context, string, string, []any)

func (*FakeBrowserAutomation) ExecuteScriptCallCount

func (fake *FakeBrowserAutomation) ExecuteScriptCallCount() int

func (*FakeBrowserAutomation) ExecuteScriptCalls

func (fake *FakeBrowserAutomation) ExecuteScriptCalls(stub func(context.Context, string, string, []any) (any, error))

func (*FakeBrowserAutomation) ExecuteScriptReturns

func (fake *FakeBrowserAutomation) ExecuteScriptReturns(result1 any, result2 error)

func (*FakeBrowserAutomation) ExecuteScriptReturnsOnCall

func (fake *FakeBrowserAutomation) ExecuteScriptReturnsOnCall(i int, result1 any, result2 error)

func (*FakeBrowserAutomation) ExtractData

func (fake *FakeBrowserAutomation) ExtractData(arg1 context.Context, arg2 string, arg3 []map[string]any, arg4 string) (string, error)

func (*FakeBrowserAutomation) ExtractDataArgsForCall

func (fake *FakeBrowserAutomation) ExtractDataArgsForCall(i int) (context.Context, string, []map[string]any, string)

func (*FakeBrowserAutomation) ExtractDataCallCount

func (fake *FakeBrowserAutomation) ExtractDataCallCount() int

func (*FakeBrowserAutomation) ExtractDataCalls

func (fake *FakeBrowserAutomation) ExtractDataCalls(stub func(context.Context, string, []map[string]any, string) (string, error))

func (*FakeBrowserAutomation) ExtractDataReturns

func (fake *FakeBrowserAutomation) ExtractDataReturns(result1 string, result2 error)

func (*FakeBrowserAutomation) ExtractDataReturnsOnCall

func (fake *FakeBrowserAutomation) ExtractDataReturnsOnCall(i int, result1 string, result2 error)

func (*FakeBrowserAutomation) FillForm

func (fake *FakeBrowserAutomation) FillForm(arg1 context.Context, arg2 string, arg3 []map[string]any, arg4 bool, arg5 string) error

func (*FakeBrowserAutomation) FillFormArgsForCall

func (fake *FakeBrowserAutomation) FillFormArgsForCall(i int) (context.Context, string, []map[string]any, bool, string)

func (*FakeBrowserAutomation) FillFormCallCount

func (fake *FakeBrowserAutomation) FillFormCallCount() int

func (*FakeBrowserAutomation) FillFormCalls

func (fake *FakeBrowserAutomation) FillFormCalls(stub func(context.Context, string, []map[string]any, bool, string) error)

func (*FakeBrowserAutomation) FillFormReturns

func (fake *FakeBrowserAutomation) FillFormReturns(result1 error)

func (*FakeBrowserAutomation) FillFormReturnsOnCall

func (fake *FakeBrowserAutomation) FillFormReturnsOnCall(i int, result1 error)

func (*FakeBrowserAutomation) GetConfig

func (fake *FakeBrowserAutomation) GetConfig() *config.Config

func (*FakeBrowserAutomation) GetConfigCallCount

func (fake *FakeBrowserAutomation) GetConfigCallCount() int

func (*FakeBrowserAutomation) GetConfigCalls

func (fake *FakeBrowserAutomation) GetConfigCalls(stub func() *config.Config)

func (*FakeBrowserAutomation) GetConfigReturns

func (fake *FakeBrowserAutomation) GetConfigReturns(result1 *config.Config)

func (*FakeBrowserAutomation) GetConfigReturnsOnCall

func (fake *FakeBrowserAutomation) GetConfigReturnsOnCall(i int, result1 *config.Config)

func (*FakeBrowserAutomation) GetHealth

func (fake *FakeBrowserAutomation) GetHealth(arg1 context.Context) error

func (*FakeBrowserAutomation) GetHealthArgsForCall

func (fake *FakeBrowserAutomation) GetHealthArgsForCall(i int) context.Context

func (*FakeBrowserAutomation) GetHealthCallCount

func (fake *FakeBrowserAutomation) GetHealthCallCount() int

func (*FakeBrowserAutomation) GetHealthCalls

func (fake *FakeBrowserAutomation) GetHealthCalls(stub func(context.Context) error)

func (*FakeBrowserAutomation) GetHealthReturns

func (fake *FakeBrowserAutomation) GetHealthReturns(result1 error)

func (*FakeBrowserAutomation) GetHealthReturnsOnCall

func (fake *FakeBrowserAutomation) GetHealthReturnsOnCall(i int, result1 error)

func (*FakeBrowserAutomation) GetOrCreateDefaultSession

func (fake *FakeBrowserAutomation) GetOrCreateDefaultSession(arg1 context.Context) (*playwright.BrowserSession, error)

func (*FakeBrowserAutomation) GetOrCreateDefaultSessionArgsForCall

func (fake *FakeBrowserAutomation) GetOrCreateDefaultSessionArgsForCall(i int) context.Context

func (*FakeBrowserAutomation) GetOrCreateDefaultSessionCallCount

func (fake *FakeBrowserAutomation) GetOrCreateDefaultSessionCallCount() int

func (*FakeBrowserAutomation) GetOrCreateDefaultSessionCalls

func (fake *FakeBrowserAutomation) GetOrCreateDefaultSessionCalls(stub func(context.Context) (*playwright.BrowserSession, error))

func (*FakeBrowserAutomation) GetOrCreateDefaultSessionReturns

func (fake *FakeBrowserAutomation) GetOrCreateDefaultSessionReturns(result1 *playwright.BrowserSession, result2 error)

func (*FakeBrowserAutomation) GetOrCreateDefaultSessionReturnsOnCall

func (fake *FakeBrowserAutomation) GetOrCreateDefaultSessionReturnsOnCall(i int, result1 *playwright.BrowserSession, result2 error)

func (*FakeBrowserAutomation) GetSession

func (fake *FakeBrowserAutomation) GetSession(arg1 string) (*playwright.BrowserSession, error)

func (*FakeBrowserAutomation) GetSessionArgsForCall

func (fake *FakeBrowserAutomation) GetSessionArgsForCall(i int) string

func (*FakeBrowserAutomation) GetSessionCallCount

func (fake *FakeBrowserAutomation) GetSessionCallCount() int

func (*FakeBrowserAutomation) GetSessionCalls

func (fake *FakeBrowserAutomation) GetSessionCalls(stub func(string) (*playwright.BrowserSession, error))

func (*FakeBrowserAutomation) GetSessionReturns

func (fake *FakeBrowserAutomation) GetSessionReturns(result1 *playwright.BrowserSession, result2 error)

func (*FakeBrowserAutomation) GetSessionReturnsOnCall

func (fake *FakeBrowserAutomation) GetSessionReturnsOnCall(i int, result1 *playwright.BrowserSession, result2 error)

func (*FakeBrowserAutomation) HandleAuthentication

func (fake *FakeBrowserAutomation) HandleAuthentication(arg1 context.Context, arg2 string, arg3 string, arg4 string, arg5 string, arg6 string, arg7 map[string]string) error

func (*FakeBrowserAutomation) HandleAuthenticationArgsForCall

func (fake *FakeBrowserAutomation) HandleAuthenticationArgsForCall(i int) (context.Context, string, string, string, string, string, map[string]string)

func (*FakeBrowserAutomation) HandleAuthenticationCallCount

func (fake *FakeBrowserAutomation) HandleAuthenticationCallCount() int

func (*FakeBrowserAutomation) HandleAuthenticationCalls

func (fake *FakeBrowserAutomation) HandleAuthenticationCalls(stub func(context.Context, string, string, string, string, string, map[string]string) error)

func (*FakeBrowserAutomation) HandleAuthenticationReturns

func (fake *FakeBrowserAutomation) HandleAuthenticationReturns(result1 error)

func (*FakeBrowserAutomation) HandleAuthenticationReturnsOnCall

func (fake *FakeBrowserAutomation) HandleAuthenticationReturnsOnCall(i int, result1 error)

func (*FakeBrowserAutomation) Invocations

func (fake *FakeBrowserAutomation) Invocations() map[string][][]interface{}

func (*FakeBrowserAutomation) LaunchBrowser

func (*FakeBrowserAutomation) LaunchBrowserArgsForCall

func (fake *FakeBrowserAutomation) LaunchBrowserArgsForCall(i int) (context.Context, *playwright.BrowserConfig)

func (*FakeBrowserAutomation) LaunchBrowserCallCount

func (fake *FakeBrowserAutomation) LaunchBrowserCallCount() int

func (*FakeBrowserAutomation) LaunchBrowserCalls

func (fake *FakeBrowserAutomation) LaunchBrowserCalls(stub func(context.Context, *playwright.BrowserConfig) (*playwright.BrowserSession, error))

func (*FakeBrowserAutomation) LaunchBrowserReturns

func (fake *FakeBrowserAutomation) LaunchBrowserReturns(result1 *playwright.BrowserSession, result2 error)

func (*FakeBrowserAutomation) LaunchBrowserReturnsOnCall

func (fake *FakeBrowserAutomation) LaunchBrowserReturnsOnCall(i int, result1 *playwright.BrowserSession, result2 error)

func (*FakeBrowserAutomation) NavigateToURL

func (fake *FakeBrowserAutomation) NavigateToURL(arg1 context.Context, arg2 string, arg3 string, arg4 string, arg5 time.Duration) error

func (*FakeBrowserAutomation) NavigateToURLArgsForCall

func (fake *FakeBrowserAutomation) NavigateToURLArgsForCall(i int) (context.Context, string, string, string, time.Duration)

func (*FakeBrowserAutomation) NavigateToURLCallCount

func (fake *FakeBrowserAutomation) NavigateToURLCallCount() int

func (*FakeBrowserAutomation) NavigateToURLCalls

func (fake *FakeBrowserAutomation) NavigateToURLCalls(stub func(context.Context, string, string, string, time.Duration) error)

func (*FakeBrowserAutomation) NavigateToURLReturns

func (fake *FakeBrowserAutomation) NavigateToURLReturns(result1 error)

func (*FakeBrowserAutomation) NavigateToURLReturnsOnCall

func (fake *FakeBrowserAutomation) NavigateToURLReturnsOnCall(i int, result1 error)

func (*FakeBrowserAutomation) Shutdown

func (fake *FakeBrowserAutomation) Shutdown(arg1 context.Context) error

func (*FakeBrowserAutomation) ShutdownArgsForCall

func (fake *FakeBrowserAutomation) ShutdownArgsForCall(i int) context.Context

func (*FakeBrowserAutomation) ShutdownCallCount

func (fake *FakeBrowserAutomation) ShutdownCallCount() int

func (*FakeBrowserAutomation) ShutdownCalls

func (fake *FakeBrowserAutomation) ShutdownCalls(stub func(context.Context) error)

func (*FakeBrowserAutomation) ShutdownReturns

func (fake *FakeBrowserAutomation) ShutdownReturns(result1 error)

func (*FakeBrowserAutomation) ShutdownReturnsOnCall

func (fake *FakeBrowserAutomation) ShutdownReturnsOnCall(i int, result1 error)

func (*FakeBrowserAutomation) TakeScreenshot

func (fake *FakeBrowserAutomation) TakeScreenshot(arg1 context.Context, arg2 string, arg3 string, arg4 bool, arg5 string, arg6 string, arg7 int) error

func (*FakeBrowserAutomation) TakeScreenshotArgsForCall

func (fake *FakeBrowserAutomation) TakeScreenshotArgsForCall(i int) (context.Context, string, string, bool, string, string, int)

func (*FakeBrowserAutomation) TakeScreenshotCallCount

func (fake *FakeBrowserAutomation) TakeScreenshotCallCount() int

func (*FakeBrowserAutomation) TakeScreenshotCalls

func (fake *FakeBrowserAutomation) TakeScreenshotCalls(stub func(context.Context, string, string, bool, string, string, int) error)

func (*FakeBrowserAutomation) TakeScreenshotReturns

func (fake *FakeBrowserAutomation) TakeScreenshotReturns(result1 error)

func (*FakeBrowserAutomation) TakeScreenshotReturnsOnCall

func (fake *FakeBrowserAutomation) TakeScreenshotReturnsOnCall(i int, result1 error)

func (*FakeBrowserAutomation) WaitForCondition

func (fake *FakeBrowserAutomation) WaitForCondition(arg1 context.Context, arg2 string, arg3 string, arg4 string, arg5 string, arg6 time.Duration, arg7 string) error

func (*FakeBrowserAutomation) WaitForConditionArgsForCall

func (fake *FakeBrowserAutomation) WaitForConditionArgsForCall(i int) (context.Context, string, string, string, string, time.Duration, string)

func (*FakeBrowserAutomation) WaitForConditionCallCount

func (fake *FakeBrowserAutomation) WaitForConditionCallCount() int

func (*FakeBrowserAutomation) WaitForConditionCalls

func (fake *FakeBrowserAutomation) WaitForConditionCalls(stub func(context.Context, string, string, string, string, time.Duration, string) error)

func (*FakeBrowserAutomation) WaitForConditionReturns

func (fake *FakeBrowserAutomation) WaitForConditionReturns(result1 error)

func (*FakeBrowserAutomation) WaitForConditionReturnsOnCall

func (fake *FakeBrowserAutomation) WaitForConditionReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL