framework

package
v0.0.0-...-d43b770 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: Apache-2.0 Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunETCDTestCase

func RunETCDTestCase(tc ETCDTestCase)

RunETCDTestCase runs a test case against the given handler.

func RunGRPCTestCase

func RunGRPCTestCase(gtc GRPCTestCase)

RunGRPCTestCase runs a test case against the given handler.

func RunHTTPTestCase

func RunHTTPTestCase(htc HTTPTestCase)

RunHTTPTestCase runs a test case against the given handler.

func RunRedisTestCase

func RunRedisTestCase(rtc RedisTestCase)

RunRedisTestCase runs a test case against the given handler.

Types

type ETCDTestCase

type ETCDTestCase struct {
	Conf *etcdv3.Config
	DoFn func(registry.Registry) (interface{}, error)

	ExpectError error
	ExpectReply interface{}
}

type GRPCTestCase

type GRPCTestCase struct {
	Conf   *grpc.Config
	Method string
	Args   proto.Message

	ExpectError    error
	ExpectMetadata metadata.MD
	ExpectReply    proto.Message
}

type HTTPTestCase

type HTTPTestCase struct {
	Conf         *jresty.Config
	Method       string
	Path         string
	Body         string
	Timeout      time.Duration
	Header       map[string]string
	Query        string
	ExpectHeader http.Header
	ExpectStatus int
	ExpectBody   string
}

type RedisTestCase

type RedisTestCase struct {
	Conf     *redis.Config
	Args     []interface{}
	Timeout  time.Duration
	OnMaster bool

	ExpectError  error
	ExpectResult interface{}
}

Jump to

Keyboard shortcuts

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