Project
Loading...
Searching...
No Matches
test_DataProcessingStats.cxx File Reference
#include "Framework/DataProcessingStats.h"
#include "Framework/TimingHelpers.h"
#include "Framework/DeviceState.h"
#include "Framework/RuntimeError.h"
#include <catch_amalgamated.hpp>
#include <uv.h>

Go to the source code of this file.

Enumerations

enum  TestMetricsId { DummyMetric = 0 , DummyMetric2 = 1 , Missing = 2 , ZeroSize = 3 }
 

Functions

 TEST_CASE ("DataProcessingStats")
 
 TEST_CASE ("DataProcessingStatsOutOfOrder")
 
 TEST_CASE ("DataProcessingStatsInstantaneousRate")
 We verify that the running average is correctly computed.
 
 TEST_CASE ("DataProcessingStatsCumulativeRate")
 We verify that the running average is correctly computed.
 
 TEST_CASE ("DataProcessingStatsPublishing")
 
 TEST_CASE ("DataProcessingStatsPublishingRepeated")
 

Enumeration Type Documentation

◆ TestMetricsId

Enumerator
DummyMetric 
DummyMetric2 
Missing 
ZeroSize 

Definition at line 21 of file test_DataProcessingStats.cxx.

Function Documentation

◆ TEST_CASE() [1/6]

TEST_CASE ( "DataProcessingStats"  )

Registering twice should throw.

Registering with a different name should throw.

Registering with a different name should throw.

Definition at line 30 of file test_DataProcessingStats.cxx.

◆ TEST_CASE() [2/6]

TEST_CASE ( "DataProcessingStatsCumulativeRate"  )

We verify that the running average is correctly computed.

Definition at line 254 of file test_DataProcessingStats.cxx.

◆ TEST_CASE() [3/6]

TEST_CASE ( "DataProcessingStatsInstantaneousRate"  )

We verify that the running average is correctly computed.

Definition at line 211 of file test_DataProcessingStats.cxx.

◆ TEST_CASE() [4/6]

TEST_CASE ( "DataProcessingStatsOutOfOrder"  )

Definition at line 182 of file test_DataProcessingStats.cxx.

◆ TEST_CASE() [5/6]

TEST_CASE ( "DataProcessingStatsPublishing"  )

Definition at line 299 of file test_DataProcessingStats.cxx.

◆ TEST_CASE() [6/6]

TEST_CASE ( "DataProcessingStatsPublishingRepeated"  )

Definition at line 344 of file test_DataProcessingStats.cxx.