Documentation ¶
Overview ¶
Package util provides utility functions for the integration package.
Index ¶
- func AdaptiveK(length, min, max, N int) int
- func CreateShingles(data []byte, k int) map[string]struct{}
- func DecodeBase64(encoded string) ([]byte, error)
- func EncodeBase64(decoded []byte) string
- func GetMockByKind(mocks []*models.Mock, kind string) []*models.Mock
- func IsASCII(s string) bool
- func JaccardSimilarity(setA, setB map[string]struct{}) float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateShingles ¶
func DecodeBase64 ¶
func EncodeBase64 ¶
func JaccardSimilarity ¶
JaccardSimilarity computes the Jaccard similarity between two sets of shingles.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.