testutils

package
v0.0.0-...-432d548 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearLocation

func ClearLocation(fsl fstorage.Location) error

ClearLocation clear all files in location.

func CollectWatchEvents

func CollectWatchEvents(w watch.Interface, outch chan watch.Event, stopCh chan struct{})

CollectWatchEvents collect events to specified channel.

func ConsumeWatchEvents

func ConsumeWatchEvents(w watch.Interface, stopCh chan struct{})

ConsumeWatchEvents consumes watch event from a watch.Interface

Types

type FuncMockMatcher

type FuncMockMatcher struct {
	Func func(x interface{}) bool
	Name string
}

FuncMockMatcher used in gomock as a matcher.

func (FuncMockMatcher) Matches

func (m FuncMockMatcher) Matches(x interface{}) bool

Matches check if the argument matches.

func (FuncMockMatcher) String

func (m FuncMockMatcher) String() string

String return the stringify for this matcher

Directories

Path Synopsis
Package carbon is a generated GoMock package.
Package carbon is a generated GoMock package.

Jump to

Keyboard shortcuts

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