count

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package count provides test registry chain elements for counting Register/Unregister/Find

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNetworkServiceEndpointRegistryClient

func NewNetworkServiceEndpointRegistryClient(counter *CallCounter) registry.NetworkServiceEndpointRegistryClient

NewNetworkServiceEndpointRegistryClient - creates a new chain element counting Register / Unregister / Find calls

func NewNetworkServiceRegistryClient

func NewNetworkServiceRegistryClient(counter *CallCounter) registry.NetworkServiceRegistryClient

NewNetworkServiceRegistryClient - creates a new chain element counting Register / Unregister / Find calls

Types

type CallCounter

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

CallCounter - stores Register / Unregister / Find calls count

func (*CallCounter) Finds

func (c *CallCounter) Finds() int

Finds returns Find count

func (*CallCounter) Registers

func (c *CallCounter) Registers() int

Registers returns Register call count

func (*CallCounter) Unregisters

func (c *CallCounter) Unregisters() int

Unregisters returns Unregister count

Jump to

Keyboard shortcuts

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