testset

package
v2.2.0-alpha29 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package testset provides functionality for working with keploy testset level configs like templates, post/pre script.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Db

type Db[T any] struct {
	// contains filtered or unexported fields
}

Db is a generic struct to read and write testset config file

func New

func New[T any](logger *zap.Logger, path string) *Db[T]

func (*Db[T]) Read

func (db *Db[T]) Read(ctx context.Context, testSetID string) (T, error)

func (*Db[T]) Write

func (db *Db[T]) Write(ctx context.Context, testSetID string, config T) error

Jump to

Keyboard shortcuts

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