Documentation
¶
Overview ¶
Package test provides functions for general testing use
Package test provides functions for general testing use ¶
Copyright (C) 2019-2025 vdaas.org vald team <vald@vdaas.org>
Licensed under the Apache License, Version 2.0 (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func DefaultCheck[T any](tt *testing.T, want Result[T], got Result[T]) error
- func GetTestdataPath(filename string) string
- func Run[T, A any](ctx context.Context, t *testing.T, do Do[T, A], tests ...Case[T, A]) error
- type AfterFunc
- type BeforeFunc
- type Case
- type CheckFunc
- type Do
- type Result
Constants ¶
View Source
const (
ValidIndex = "agent/ngt/validIndex"
)
Variables ¶
This section is empty.
Functions ¶
func DefaultCheck ¶ added in v1.7.17
func GetTestdataPath ¶
GetTestdataPath returns the test data file path under `internal/test/data`.
Types ¶
type Case ¶ added in v1.7.17
type Case[T, A any] struct { Want Result[T] Args A BeforeFunc BeforeFunc[A] AfterFunc AfterFunc[T, A] CheckFunc CheckFunc[T] Name string }
Directories
¶
| Path | Synopsis |
|---|---|
|
data
|
|
|
hdf5
Package hdf5 is load hdf5 file
|
Package hdf5 is load hdf5 file |
|
request
Package request provides functions to generate proto request for testing
|
Package request provides functions to generate proto request for testing |
|
strings
Package strings provides functionality for Vald.
|
Package strings provides functionality for Vald. |
|
vector
Package vector provides functionality for Vald.
|
Package vector provides functionality for Vald. |
|
vector/noise
Package noise provides functionality for Vald.
|
Package noise provides functionality for Vald. |
|
Package goleak provides functionality for Vald.
|
Package goleak provides functionality for Vald. |
|
grpc
Package grpc provides functionality for Vald.
|
Package grpc provides functionality for Vald. |
|
Package testify provides functionality for Vald.
|
Package testify provides functionality for Vald. |
Click to show internal directories.
Click to hide internal directories.