util

package
v2.3.0-beta6 Latest Latest
Warning

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

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

Documentation

Overview

Package util provides utility functions for the integration package.

Index

Constants

View Source
const (
	SCRAM_SHA_1   = "SCRAM-SHA-1"
	SCRAM_SHA_256 = "SCRAM-SHA-256"
)

scram enum values

Variables

This section is empty.

Functions

func AdaptiveK

func AdaptiveK(length, min, max, N int) int

func CreateShingles

func CreateShingles(data []byte, k int) map[string]struct{}

func DecodeBase64

func DecodeBase64(encoded string) ([]byte, error)

func EncodeBase64

func EncodeBase64(decoded []byte) string

func GetMockByKind

func GetMockByKind(mocks []*models.Mock, kind string) []*models.Mock

func IsASCII

func IsASCII(s string) bool

func JaccardSimilarity

func JaccardSimilarity(setA, setB map[string]struct{}) float64

JaccardSimilarity computes the Jaccard similarity between two sets of shingles.

Types

This section is empty.

Jump to

Keyboard shortcuts

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