Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
aos
GitHub Repository: aos/firecracker
Path: blob/main/tests/framework/stats/baseline.py
1956 views
1
# Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
# SPDX-License-Identifier: Apache-2.0
3
"""Module for common statistic tests baselines providers."""
4
5
from abc import ABC, abstractmethod
6
from framework.utils import DictQuery
7
8
9
# pylint: disable=R0903
10
class Provider(ABC):
11
"""Baselines provider abstract class."""
12
13
def __init__(self, baselines: DictQuery):
14
"""Block baseline provider initialization."""
15
self._baselines = baselines
16
17
@abstractmethod
18
def get(self, ms_name: str, st_name: str) -> dict:
19
"""Return the baselines corresponding to the `ms_name` and `st_name`...
20
21
...combination.
22
"""
23
24