tests

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package tests contains all tests that can be executed

Index

Constants

View Source
const (
	Fibonacci    testName = "fibonacci"
	Factorial    testName = "factorial"
	Trigonometry testName = "trigonometry"
)

Name of all available tests

Variables

This section is empty.

Functions

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 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