test

package
v0.48.1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeAggregation

func MakeAggregation(bucketCount int, opts *MakeAggOpts) *seqapi.Aggregation

func MakeAggregations

func MakeAggregations(aggCount, bucketCount int, opts *MakeAggOpts) []*seqapi.Aggregation

func MakeEvent

func MakeEvent(id string, countData int, t time.Time) *seqapi.Event

func MakeEvents

func MakeEvents(count int, t time.Time) []*seqapi.Event

func MakeHistogram

func MakeHistogram(bucketCount int) *seqapi.Histogram

func SetCfgDefaults

func SetCfgDefaults(cfg config.SeqAPI) config.SeqAPI

Types

type APITestData

type APITestData struct {
	Cfg   config.SeqAPI
	Mocks Mocks
}

type CacheMockArgs

type CacheMockArgs struct {
	Key   string
	Value string
	Err   error
}

type MakeAggOpts

type MakeAggOpts struct {
	NotExists int64
	Quantiles []float64
	Ts        []*timestamppb.Timestamp
}

type Mocks

type Mocks struct {
	SeqDB             *mock_seqdb.MockClient
	Cache             *mock_cache.MockCache
	AsyncSearchesRepo *mock_repo.MockAsyncSearches
	ProfilesRepo      *mock_repo.MockUserProfiles
}

Jump to

Keyboard shortcuts

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