AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | List of all members
gtest_throw_on_failure_test.ThrowOnFailureTest Class Reference
Inheritance diagram for gtest_throw_on_failure_test.ThrowOnFailureTest:
Inheritance graph
[legend]
Collaboration diagram for gtest_throw_on_failure_test.ThrowOnFailureTest:
Collaboration graph
[legend]

Public Member Functions

def RunAndVerify (self, env_var_value, flag_value, should_fail)
 
def testDefaultBehavior (self)
 
def testThrowOnFailureEnvVar (self)
 
def testThrowOnFailureFlag (self)
 
def testThrowOnFailureFlagOverridesEnvVar (self)
 

Detailed Description

Tests the throw-on-failure mode.

Member Function Documentation

◆ RunAndVerify()

def gtest_throw_on_failure_test.ThrowOnFailureTest.RunAndVerify (   self,
  env_var_value,
  flag_value,
  should_fail 
)
Runs gtest_throw_on_failure_test_ and verifies that it does
(or does not) exit with a non-zero code.

Args:
  env_var_value:    value of the GTEST_BREAK_ON_FAILURE environment
                variable; None if the variable should be unset.
  flag_value:       value of the --gtest_break_on_failure flag;
                None if the flag should not be present.
  should_fail:      True iff the program is expected to fail.

◆ testDefaultBehavior()

def gtest_throw_on_failure_test.ThrowOnFailureTest.testDefaultBehavior (   self)
Tests the behavior of the default mode.

◆ testThrowOnFailureEnvVar()

def gtest_throw_on_failure_test.ThrowOnFailureTest.testThrowOnFailureEnvVar (   self)
Tests using the GTEST_THROW_ON_FAILURE environment variable.

◆ testThrowOnFailureFlag()

def gtest_throw_on_failure_test.ThrowOnFailureTest.testThrowOnFailureFlag (   self)
Tests using the --gtest_throw_on_failure flag.

◆ testThrowOnFailureFlagOverridesEnvVar()

def gtest_throw_on_failure_test.ThrowOnFailureTest.testThrowOnFailureFlagOverridesEnvVar (   self)
Tests that --gtest_throw_on_failure overrides GTEST_THROW_ON_FAILURE.

The documentation for this class was generated from the following file:

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