reduce_to_test.go
reduce_to_test.go - Overview
This file contains unit tests for the reduce-to operator application logic implemented in reduce_to.go
. It verifies that the applyReduceTo
function correctly aggregates time series data into single values based on the specified reduce-to operator.
Detailed Documentation
TestApplyReduceTo
Purpose:
Tests the applyReduceTo
function with various reduce-to operators and input data to ensure correct aggregation of time series data.
Parameters:
t
(*testing.T): Testing object for running the test case.
Returns:
None. The function asserts that the applyReduceTo
function correctly reduces the time series data, matching the expected output for each test case.
Include in Getting Started: NO