Module Expr Str Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad Str Lambda arguments args defaults NameLoad Assign NameStore ListLoad Call NameLoad Str Num NameLoad Call NameLoad Str Num Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr NameLoad Assert CompareEq Num Call AttributeLoad NameLoad attr TupleLoad Str Num NameLoad Assert CompareEq Num Call AttributeLoad NameLoad attr TupleLoad Str Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Num Assign NameStore Dict Str Dict Str Num Assign NameStore ListLoad Call NameLoad Str Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Lambda arguments args defaults NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad keyword NameLoad attr NameLoad Print Call NameLoad NameLoad Assert CompareEq Num Call AttributeLoad NameLoad attr TupleLoad Str Num NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Num Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Call NameLoad Str Num NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Call NameLoad Str Num NameLoad Expr Call AttributeLoad NameLoad attr Assert CompareEq ListLoad TupleLoad Str Num NameLoad TupleLoad Str Num NameLoad AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
Contains tests for the statistics aggregator base class as well
as the default aggregator class.
 N/A time tests.base TestBase statsite.aggregator Aggregator DefaultAggregator statsite.metrics Counter KeyValue Timer TestAggregator N/A TestBase N/A test_fold_metrics_works N/A N/A self monkeypatch N/A N/A N/A 
        Tests that aggregators can fold metrics properly.
         N/A now 12 N/A N/A N/A monkeypatch setattr time time N/A N/A N/A N/A now N/A metrics N/A N/A KeyValue k 1 now N/A Counter j 2 N/A result N/A N/A N/A Aggregator None _fold_metrics metrics N/A N/A 1 N/A N/A result count N/A kv.k 1 now N/A N/A 1 N/A N/A result count N/A counts.j 2 now N/A test_fold_metrics_passes_metric_settings N/A N/A self monkeypatch N/A N/A N/A 
        Tests that aggregators pass the proper metric settings when
        folding over.
         N/A now 12 N/A settings N/A ms N/A percentile 80 N/A metrics N/A N/A Timer k 20 now N/A N/A N/A monkeypatch setattr time time N/A N/A N/A N/A now N/A result N/A N/A N/A Aggregator None metrics_settings settings _fold_metrics metrics N/A N/A repr result N/A N/A 1 N/A N/A result count N/A timers.k.sum_80 20 now N/A N/A TestDefaultAggregator N/A TestBase N/A test_flushes_collected_metrics N/A N/A self metrics_store N/A N/A N/A 
        Tests that the default aggregator properly flushes the
        collected metrics to the metric store.
         N/A now 17 N/A agg N/A DefaultAggregator metrics_store N/A N/A N/A agg add_metrics N/A N/A KeyValue k 1 now N/A N/A N/A agg add_metrics N/A N/A KeyValue k 2 now N/A N/A N/A agg flush N/A N/A N/A N/A kv.k 1 now N/A kv.k 2 now N/A metrics_store data N/A N/A