mock

package
v0.15.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Rendered for windows/amd64

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAPI

type MockAPI struct {
	// contains filtered or unexported fields
}

MockAPI is a mock of API interface.

func NewMockAPI

func NewMockAPI(ctrl *gomock.Controller) *MockAPI

NewMockAPI creates a new mock instance.

func (*MockAPI) CloseHandle

func (m *MockAPI) CloseHandle(h windows.Handle) error

CloseHandle mocks base method.

func (*MockAPI) CloseToken

func (m *MockAPI) CloseToken(token windows.Token) error

CloseToken mocks base method.

func (*MockAPI) CreateToolhelp32Snapshot

func (m *MockAPI) CreateToolhelp32Snapshot(flags, processID uint32) (windows.Handle, error)

CreateToolhelp32Snapshot mocks base method.

func (*MockAPI) EXPECT

func (m *MockAPI) EXPECT() *MockAPIMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAPI) GetTokenUser

func (m *MockAPI) GetTokenUser(token windows.Token) (*windows.Tokenuser, error)

GetTokenUser mocks base method.

func (*MockAPI) LookupAccount

func (m *MockAPI) LookupAccount(sid *windows.SID, system string) (string, string, uint32, error)

LookupAccount mocks base method.

func (*MockAPI) OpenProcess

func (m *MockAPI) OpenProcess(desiredAccess uint32, inheritHandle bool, processID uint32) (windows.Handle, error)

OpenProcess mocks base method.

func (*MockAPI) OpenProcessToken

func (m *MockAPI) OpenProcessToken(process windows.Handle, desiredAccess uint32, token *windows.Token) error

OpenProcessToken mocks base method.

func (*MockAPI) Process32First

func (m *MockAPI) Process32First(snapshot windows.Handle, pe *windows.ProcessEntry32) error

Process32First mocks base method.

func (*MockAPI) Process32Next

func (m *MockAPI) Process32Next(snapshot windows.Handle, pe *windows.ProcessEntry32) error

Process32Next mocks base method.

type MockAPIMockRecorder

type MockAPIMockRecorder struct {
	// contains filtered or unexported fields
}

MockAPIMockRecorder is the mock recorder for MockAPI.

func (*MockAPIMockRecorder) CloseHandle

func (mr *MockAPIMockRecorder) CloseHandle(h any) *gomock.Call

CloseHandle indicates an expected call of CloseHandle.

func (*MockAPIMockRecorder) CloseToken

func (mr *MockAPIMockRecorder) CloseToken(token any) *gomock.Call

CloseToken indicates an expected call of CloseToken.

func (*MockAPIMockRecorder) CreateToolhelp32Snapshot

func (mr *MockAPIMockRecorder) CreateToolhelp32Snapshot(flags, processID any) *gomock.Call

CreateToolhelp32Snapshot indicates an expected call of CreateToolhelp32Snapshot.

func (*MockAPIMockRecorder) GetTokenUser

func (mr *MockAPIMockRecorder) GetTokenUser(token any) *gomock.Call

GetTokenUser indicates an expected call of GetTokenUser.

func (*MockAPIMockRecorder) LookupAccount

func (mr *MockAPIMockRecorder) LookupAccount(sid, system any) *gomock.Call

LookupAccount indicates an expected call of LookupAccount.

func (*MockAPIMockRecorder) OpenProcess

func (mr *MockAPIMockRecorder) OpenProcess(desiredAccess, inheritHandle, processID any) *gomock.Call

OpenProcess indicates an expected call of OpenProcess.

func (*MockAPIMockRecorder) OpenProcessToken

func (mr *MockAPIMockRecorder) OpenProcessToken(process, desiredAccess, token any) *gomock.Call

OpenProcessToken indicates an expected call of OpenProcessToken.

func (*MockAPIMockRecorder) Process32First

func (mr *MockAPIMockRecorder) Process32First(snapshot, pe any) *gomock.Call

Process32First indicates an expected call of Process32First.

func (*MockAPIMockRecorder) Process32Next

func (mr *MockAPIMockRecorder) Process32Next(snapshot, pe any) *gomock.Call

Process32Next indicates an expected call of Process32Next.

Jump to

Keyboard shortcuts

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