functions_test.go
functions_test.go - Overview
This file contains unit tests for the functions defined in functions.go
. It tests each function with various inputs to ensure they produce the expected results.
Detailed Documentation
TestFuncCutOffMin(t *testing.T)
- Purpose: Tests the
funcCutOffMin
function. - Parameters:
t *testing.T
: Testing object for Go's testing framework.
- Returns: None.
TestFuncCutOffMax(t *testing.T)
- Purpose: Tests the
funcCutOffMax
function. - Parameters:
t *testing.T
: Testing object for Go's testing framework.
- Returns: None.
TestCutOffMinCumSum(t *testing.T)
- Purpose: Tests the combination of
funcCutOffMin
andfuncCumSum
functions. - Parameters:
t *testing.T
: Testing object for Go's testing framework.
- Returns: None.
TestFuncMedian3(t *testing.T)
- Purpose: Tests the
funcMedian3
function. - Parameters:
t *testing.T
: Testing object for Go's testing framework.
- Returns: None.
TestFuncMedian5(t *testing.T)
- Purpose: Tests the
funcMedian5
function. - Parameters:
t *testing.T
: Testing object for Go's testing framework.
- Returns: None.
TestFuncRunningDiff(t *testing.T)
- Purpose: Tests the
funcRunningDiff
function. - Parameters:
t *testing.T
: Testing object for Go's testing framework.
- Returns: None.
Code Examples
None necessary.
Include in Getting Started: NO