tests

package
v0.0.0-...-ef4fc8a Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DOMAIN = "domain.com"

DOMAIN is the domain constant

View Source
const PATH = "/testing"

PATH is the path constant

Variables

This section is empty.

Functions

func BadgerConfiguration

func BadgerConfiguration() string

BadgerConfiguration simulate the configuration for the Badger storage

func BaseConfiguration

func BaseConfiguration() string

BaseConfiguration is the legacy configuration

func CDNConfiguration

func CDNConfiguration() string

CDNConfiguration is the CDN configuration

func EmbeddedOlricConfiguration

func EmbeddedOlricConfiguration() string

EmbeddedOlricConfiguration is the olric included configuration

func EmbeddedOlricPlainConfigurationWithoutAdditionalYAML

func EmbeddedOlricPlainConfigurationWithoutAdditionalYAML() string

EmbeddedOlricPlainConfigurationWithoutAdditionalYAML simulate the configuration for the embedded Olric storage

func EtcdConfiguration

func EtcdConfiguration() string

EtcdConfiguration simulate the configuration for the Nuts storage

func GetCacheProviderClientAndMatchedURL

func GetCacheProviderClientAndMatchedURL(key string, configurationMocker func() configurationtypes.AbstractConfigurationInterface, factory func(configurationInterface configurationtypes.AbstractConfigurationInterface) (types.Storer, error)) (types.Storer, configurationtypes.URL)

GetCacheProviderClientAndMatchedURL will work as a factory to build providers from configuration and get the URL from the key passed in parameter

func GetMatchedURL

func GetMatchedURL(key string) configurationtypes.URL

GetMatchedURL is an helper to mock the matchedURL

func GetTokenName

func GetTokenName() string

GetTokenName returns the token name

func GetValidToken

func GetValidToken() *http.Cookie

GetValidToken returns a valid token

func MockConfiguration

func MockConfiguration(configurationToLoad func() string) *configuration.Configuration

MockConfiguration is an helper to mock the configuration

func MockInitializeRegexp

func MockInitializeRegexp(configurationInstance configurationtypes.AbstractConfigurationInterface) regexp.Regexp

MockInitializeRegexp is an helper to mock the regexp initialization

func NutsConfiguration

func NutsConfiguration() string

NutsConfiguration simulate the configuration for the Nuts storage

func OlricConfiguration

func OlricConfiguration() string

OlricConfiguration is the olric included configuration

func RedisConfiguration

func RedisConfiguration() string

RedisConfiguration simulate the configuration for the Nuts storage

func ValidatePanic

func ValidatePanic(t *testing.T, f func())

ValidatePanic is an helper to check if function should panic

Types

This section is empty.

Jump to

Keyboard shortcuts

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