tests

package
v0.0.0-...-516eae0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package tests contains all tests that can be executed

Index

Constants

View Source
const (
	Fibonacci    testName = "fibonacci"
	Factorial             = "factorial"
	Trigonometry          = "trigonometry"
	LeibnizPi             = "leibniz_π"
	AesGcm                = "aes_gcm"
)

Name of all available tests

Variables

This section is empty.

Functions

func NewAesGcmTest

func NewAesGcmTest(n uint) core.Test

NewAesGcmTest creates new factorial test

func NewFactorialTest

func NewFactorialTest(n uint) core.Test

NewFactorialTest creates new factorial test

func NewFibonacciTest

func NewFibonacciTest(n uint) core.Test

NewFibonacciTest creates new fibonacci test

func NewPiTest

func NewPiTest(n uint) core.Test

NewPiTest creates new π math.Pi test

func NewTrigonometryTest

func NewTrigonometryTest(n uint) core.Test

NewTrigonometryTest creates new trigonometry test

func ParseTestCases

func ParseTestCases(testList TestCases) (core.Tests, error)

ParseTestCases parses test cases into tests

Types

type TestCase

type TestCase struct {
	Name testName     `yaml:"name"`
	Args TestCaseArgs `yaml:"args"`
}

TestCase represents test with it's args

type TestCaseArgs

type TestCaseArgs []interface{}

TestCaseArgs represents arguments of test

type TestCases

type TestCases []TestCase

TestCases represents slice of test cases

Jump to

Keyboard shortcuts

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