1/* 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16/** 17 * define the testcase type : TestType, Size , Level 18 */ 19export const TAG = '[Hypium]'; 20 21export const DEFAULT = 0B0000; 22 23export class TestType { 24 static FUNCTION = 0B1; 25 static PERFORMANCE = 0B1 << 1; 26 static POWER = 0B1 << 2; 27 static RELIABILITY = 0B1 << 3; 28 static SECURITY = 0B1 << 4; 29 static GLOBAL = 0B1 << 5; 30 static COMPATIBILITY = 0B1 << 6; 31 static USER = 0B1 << 7; 32 static STANDARD = 0B1 << 8; 33 static SAFETY = 0B1 << 9; 34 static RESILIENCE = 0B1 << 10; 35} 36 37export class Size { 38 static SMALLTEST = 0B1 << 16; 39 static MEDIUMTEST = 0B1 << 17; 40 static LARGETEST = 0B1 << 18; 41} 42 43export class Level { 44 static LEVEL0 = 0B1 << 24; 45 static LEVEL1 = 0B1 << 25; 46 static LEVEL2 = 0B1 << 26; 47 static LEVEL3 = 0B1 << 27; 48 static LEVEL4 = 0B1 << 28; 49} 50