AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Functions | Variables
gtest_help_test Namespace Reference

Classes

class  GTestHelpTest
 

Functions

def RunWithFlag (flag)
 

Variables

string IS_LINUX = 'Linux'
 
string IS_WINDOWS = 'nt'
 
 PROGRAM_PATH = gtest_test_utils.GetTestExecutablePath('gtest_help_test_')
 
string FLAG_PREFIX = '--gtest_'
 
string DEATH_TEST_STYLE_FLAG = FLAG_PREFIX + 'death_test_style'
 
string STREAM_RESULT_TO_FLAG = FLAG_PREFIX + 'stream_result_to'
 
string UNKNOWN_FLAG = FLAG_PREFIX + 'unknown_flag_for_testing'
 
string LIST_TESTS_FLAG = FLAG_PREFIX + 'list_tests'
 
list INCORRECT_FLAG_VARIANTS
 
string INTERNAL_FLAG_FOR_TESTING = FLAG_PREFIX + 'internal_flag_for_testing'
 
string SUPPORTS_DEATH_TESTS
 
 HELP_REGEX
 

Function Documentation

◆ RunWithFlag()

def gtest_help_test.RunWithFlag (   flag)
Runs gtest_help_test_ with the given flag.

Returns:
  the exit code and the text output as a tuple.
Args:
  flag: the command-line flag to pass to gtest_help_test_, or None.

Variable Documentation

◆ DEATH_TEST_STYLE_FLAG

string gtest_help_test.DEATH_TEST_STYLE_FLAG = FLAG_PREFIX + 'death_test_style'

◆ FLAG_PREFIX

string gtest_help_test.FLAG_PREFIX = '--gtest_'

◆ HELP_REGEX

gtest_help_test.HELP_REGEX
Initial value:
1 = re.compile(
2  FLAG_PREFIX + r'list_tests.*' +
3  FLAG_PREFIX + r'filter=.*' +
4  FLAG_PREFIX + r'also_run_disabled_tests.*' +
5  FLAG_PREFIX + r'repeat=.*' +
6  FLAG_PREFIX + r'shuffle.*' +
7  FLAG_PREFIX + r'random_seed=.*' +
8  FLAG_PREFIX + r'color=.*' +
9  FLAG_PREFIX + r'print_time.*' +
10  FLAG_PREFIX + r'output=.*' +
11  FLAG_PREFIX + r'break_on_failure.*' +
12  FLAG_PREFIX + r'throw_on_failure.*' +
13  FLAG_PREFIX + r'catch_exceptions=0.*',
14  re.DOTALL)

◆ INCORRECT_FLAG_VARIANTS

list gtest_help_test.INCORRECT_FLAG_VARIANTS
Initial value:
1 = [re.sub('^--', '-', LIST_TESTS_FLAG),
2  re.sub('^--', '/', LIST_TESTS_FLAG),
3  re.sub('_', '-', LIST_TESTS_FLAG)]

◆ INTERNAL_FLAG_FOR_TESTING

string gtest_help_test.INTERNAL_FLAG_FOR_TESTING = FLAG_PREFIX + 'internal_flag_for_testing'

◆ IS_LINUX

string gtest_help_test.IS_LINUX = 'Linux'

◆ IS_WINDOWS

string gtest_help_test.IS_WINDOWS = 'nt'

◆ LIST_TESTS_FLAG

string gtest_help_test.LIST_TESTS_FLAG = FLAG_PREFIX + 'list_tests'

◆ PROGRAM_PATH

gtest_help_test.PROGRAM_PATH = gtest_test_utils.GetTestExecutablePath('gtest_help_test_')

◆ STREAM_RESULT_TO_FLAG

string gtest_help_test.STREAM_RESULT_TO_FLAG = FLAG_PREFIX + 'stream_result_to'

◆ SUPPORTS_DEATH_TESTS

string gtest_help_test.SUPPORTS_DEATH_TESTS
Initial value:
1 = "DeathTest" in gtest_test_utils.Subprocess(
2  [PROGRAM_PATH, LIST_TESTS_FLAG]).output
Definition: gtest_test_utils.py:207

◆ UNKNOWN_FLAG

string gtest_help_test.UNKNOWN_FLAG = FLAG_PREFIX + 'unknown_flag_for_testing'

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0