Module Expr Str Import alias Import alias Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Str Str Assign NameStore Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr keyword Str FunctionDef arguments args defaults body Return TupleLoad Str Str decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str AugAssignAdd NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str AugAssignAdd NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str AugAssignAdd NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str AugAssignAdd NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Call NameLoad NameLoad Call NameLoad body Expr Str Assign NameStore Call NameLoad If Call AttributeLoad NameLoad attr Str NameLoad body Print Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr Str NameLoad body Print Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str If CompareNotEq NameLoad NameLoad body Print Str NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str If CompareNotEq NameLoad NameLoad body Print Str NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr If BoolOpAnd NameLoad CompareNotEq SubscriptLoad NameLoad Index Str NameLoad body Print Str NameLoad Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr orelse If BoolOpAnd UnaryOpNot NameLoad CompareNotEq SubscriptLoad NameLoad Index Str NameLoad body Print Str NameLoad Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad If Call AttributeLoad NameLoad attr Str NameLoad body Print Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr Str NameLoad body Print Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr If CompareNotEq SubscriptLoad NameLoad Index Str NameLoad body Print Str NameLoad Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str If CompareNotEq NameLoad NameLoad body Print Str NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad If CompareEq Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr NameLoad Num body Print Str Call AttributeLoad NameLoad attr Str Str Str NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If CompareEq Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Num body Print Str Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str If CompareNotEq NameLoad NameLoad body Print Str NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Str Str Expr Call NameLoad Str Expr Call NameLoad ListLoad Str ListLoad Str Expr Call NameLoad Expr Call NameLoad Set Str Expr Call NameLoad Expr Call NameLoad Expr Call NameLoad Str Expr Call NameLoad ListLoad Str ListLoad Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str Expr Call NameLoad ListLoad Str ListLoad Expr Call NameLoad Expr Call NameLoad keyword NameLoad Expr Call NameLoad ListLoad Str ListLoad Expr Call NameLoad Str Expr Call NameLoad keyword NameLoad keyword Set Str Expr Call NameLoad ListLoad Str Str ListLoad Expr Call NameLoad Expr Call NameLoad Expr Call NameLoad ListLoad Str Str ListLoad Expr Call NameLoad Expr Call NameLoad Expr Call NameLoad ListLoad Str Str ListLoad Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str Str Expr Call NameLoad ListLoad Str ListLoad Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str Expr Call NameLoad ListLoad Str ListLoad Expr Call NameLoad Expr Call NameLoad keyword NameLoad Expr Call NameLoad ListLoad Str ListLoad Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str Expr Call NameLoad ListLoad Str ListLoad Expr Call NameLoad Expr Call NameLoad keyword NameLoad Expr Call NameLoad ListLoad Str ListLoad Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str Expr Call NameLoad ListLoad Str ListLoad Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str Str Expr Call NameLoad ListLoad Str ListLoad Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str Expr Call NameLoad ListLoad Str Str ListLoad Str Str Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str keyword Set Str Str Expr Call NameLoad ListLoad Str Str ListLoad Str Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str Str Expr Call NameLoad ListLoad Str Str ListLoad Str Str Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str Str Expr Call NameLoad ListLoad Str ListLoad Str Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str Expr Call NameLoad ListLoad Str ListLoad Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str Expr Call NameLoad ListLoad Str Str ListLoad Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str Str Expr Call NameLoad ListLoad Str ListLoad Str Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str keyword Set Str Expr Call NameLoad ListLoad Str ListLoad Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str Expr Call NameLoad ListLoad Str ListLoad Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str Expr Call NameLoad ListLoad Str ListLoad Str Str Str Str Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str Str keyword Set Str Expr Call NameLoad ListLoad Str ListLoad Str Str Str Str Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str Str keyword Set Str Expr Call NameLoad ListLoad Str ListLoad Str Str Str Str Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str Str keyword Set Str Expr Call NameLoad ListLoad Str ListLoad Str Str Str Str Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str Str Str keyword Set Str Str Str Expr Call NameLoad ListLoad Str ListLoad Str Str Str Str Expr Call NameLoad Str Expr Call NameLoad Set Str Str Str Str Expr Call NameLoad ListLoad Str Str ListLoad Str Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str keyword Set Str Str Expr Call NameLoad ListLoad Str ListLoad Str Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str keyword Set Str Str Expr Call NameLoad ListLoad Str ListLoad Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str Str Expr Call NameLoad ListLoad Str Str ListLoad Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str Str Str Str Expr Call NameLoad ListLoad Str ListLoad Str Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str keyword Set Str Str Expr Call NameLoad ListLoad Str ListLoad Str Str Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str keyword Set Str Expr Call NameLoad ListLoad Str ListLoad Str Str Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str keyword Set Str Expr Call NameLoad ListLoad Str ListLoad Str Str Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str Str keyword Set Str Str Expr Call NameLoad ListLoad Str ListLoad Str Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str keyword Set Str Str Expr Call NameLoad ListLoad Str ListLoad Str Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str keyword Set Str Expr Call NameLoad ListLoad Str ListLoad Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str Expr Call NameLoad ListLoad Str ListLoad Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str Str Expr Call NameLoad ListLoad Str ListLoad Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str Str Expr Call NameLoad ListLoad Str ListLoad Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str Str Str Str Expr Call NameLoad ListLoad Str ListLoad Expr Call NameLoad Expr Call NameLoad keyword NameLoad keyword Set Str Expr Call AttributeLoad NameLoad attr
N/A N/A Tests for analyzer
 N/A json N/A TestGyp N/A found Found dependency N/A found_all Found dependency (all) N/A not_found No dependencies _CreateConfigFile N/A N/A files targets N/A N/A N/A Creates the analyzer conflig file, which is used as the input to analyzer.
  See description of analyzer.py for description of the arguments. N/A f N/A open test_file w N/A to_write N/A files targets files targets N/A N/A N/A json dump to_write f N/A N/A N/A f close N/A _CreateBogusConfigFile N/A N/A N/A N/A N/A f N/A open test_file w N/A N/A N/A f write bogus N/A N/A N/A f close N/A _ReadOutputFileContents N/A N/A N/A N/A N/A f N/A open analyzer_output r N/A result N/A N/A json load f N/A N/A N/A f close N/A result N/A N/A test N/A N/A TestGyp TestGypCustom format analyzer CommonArgs N/A N/A N/A N/A N/A N/A -Gconfig_path=test_file -Ganalyzer_output_path=analyzer_output N/A run_analyzer N/A N/A N/A args kw N/A N/A Runs the test specifying a particular config and output path. N/A args N/A CommonArgs N/A N/A N/A test run_gyp test.gyp args kw N/A run_analyzer2 N/A N/A N/A args kw N/A N/A Same as run_analyzer(), but passes in test2.gyp instead of test.gyp. N/A args N/A CommonArgs N/A N/A N/A test run_gyp test2.gyp args kw N/A run_analyzer3 N/A N/A N/A args kw N/A N/A Same as run_analyzer(), but passes in test3.gyp instead of test.gyp. N/A args N/A CommonArgs N/A N/A N/A test run_gyp test3.gyp args kw N/A run_analyzer4 N/A N/A N/A args kw N/A N/A Same as run_analyzer(), but passes in test3.gyp instead of test.gyp. N/A args N/A CommonArgs N/A N/A N/A test run_gyp test4.gyp args kw N/A EnsureContains N/A N/A targets matched build_targets N/A N/A set False N/A set N/A N/A Verifies output contains |targets|. N/A result N/A _ReadOutputFileContents N/A N/A N/A result get error None N/A N/A unexpected error N/A N/A result get error N/A N/A N/A test fail_test N/A N/A N/A result get invalid_targets None N/A N/A unexpected invalid_targets N/A N/A result get invalid_targets N/A N/A N/A test fail_test N/A actual_targets N/A set N/A result N/A targets N/A N/A actual_targets targets N/A N/A actual targets: actual_targets 
expected targets: targets N/A N/A N/A test fail_test N/A actual_build_targets N/A set N/A result N/A build_targets N/A N/A actual_build_targets build_targets N/A N/A actual build_targets: actual_build_targets 
expected build_targets: build_targets N/A N/A N/A test fail_test N/A N/A matched N/A N/A result N/A status found N/A N/A expected found got N/A result N/A status N/A N/A N/A test fail_test N/A N/A N/A N/A matched N/A N/A result N/A status not_found N/A N/A expected not_found got N/A result N/A status N/A N/A N/A test fail_test N/A EnsureMatchedAll N/A N/A targets N/A N/A N/A result N/A _ReadOutputFileContents N/A N/A N/A result get error None N/A N/A unexpected error N/A N/A result get error N/A N/A N/A test fail_test N/A N/A N/A result get invalid_targets None N/A N/A unexpected invalid_targets N/A N/A result get invalid_targets N/A N/A N/A test fail_test N/A N/A N/A result N/A status found_all N/A N/A expected found_all got N/A result N/A status N/A N/A N/A test fail_test N/A actual_targets N/A set N/A result N/A targets N/A N/A actual_targets targets N/A N/A actual targets: actual_targets 
expected targets: targets N/A N/A N/A test fail_test N/A EnsureError N/A N/A expected_error_string N/A N/A N/A Verifies output contains the error string. N/A result N/A _ReadOutputFileContents N/A N/A N/A N/A N/A N/A result get error find expected_error_string -1 N/A N/A actual error: N/A N/A result get error 
expected error: expected_error_string N/A N/A N/A test fail_test N/A EnsureStdoutContains N/A N/A expected_error_string N/A N/A N/A N/A N/A N/A N/A N/A test stdout find expected_error_string -1 N/A N/A actual stdout: N/A N/A test stdout 
expected stdout: expected_error_string N/A N/A N/A test fail_test N/A EnsureInvalidTargets N/A N/A expected_invalid_targets N/A N/A N/A Verifies output contains invalid_targets. N/A result N/A _ReadOutputFileContents N/A actual_invalid_targets N/A set N/A result N/A invalid_targets N/A N/A actual_invalid_targets expected_invalid_targets N/A N/A actual invalid_targets: actual_invalid_targets 
expected : expected_invalid_targets N/A N/A N/A test fail_test N/A N/A N/A N/A test run_gyp test.gyp N/A N/A EnsureStdoutContains Must specify files to analyze via config_path N/A N/A N/A test run_gyp test.gyp -Gconfig_path=bogus_file -Ganalyzer_output_path=analyzer_output N/A N/A EnsureError Unable to open file bogus_file N/A N/A _CreateConfigFile N/A exe2.c N/A bad_target N/A N/A run_analyzer N/A N/A EnsureInvalidTargets N/A bad_target N/A N/A _CreateBogusConfigFile N/A N/A run_analyzer N/A N/A EnsureError Unable to parse config file test_file N/A N/A _CreateConfigFile N/A foo.c N/A N/A N/A run_analyzer N/A N/A EnsureContains matched True build_targets N/A exe N/A N/A _CreateConfigFile N/A conditional_source.c N/A N/A N/A run_analyzer N/A N/A EnsureContains matched False N/A N/A _CreateConfigFile N/A conditional_source.c N/A N/A N/A run_analyzer -Dtest_variable=1 N/A N/A EnsureContains matched True build_targets N/A exe N/A N/A _CreateConfigFile N/A unknown1.c unoknow2.cc N/A N/A N/A run_analyzer N/A N/A EnsureContains N/A N/A _CreateConfigFile N/A unknown1.c subdir/subdir_sourcex.c N/A N/A N/A run_analyzer N/A N/A EnsureContains N/A N/A _CreateConfigFile N/A unknown1.c subdir/subdir_source.c N/A N/A N/A run_analyzer N/A N/A EnsureContains matched True build_targets N/A exe exe3 N/A N/A _CreateConfigFile N/A action_input.c N/A N/A N/A run_analyzer N/A N/A EnsureContains matched True build_targets N/A exe N/A N/A _CreateConfigFile N/A action_output.c N/A N/A N/A run_analyzer N/A N/A EnsureContains matched False N/A N/A _CreateConfigFile N/A rule_input.c N/A N/A N/A run_analyzer N/A N/A EnsureContains matched True build_targets N/A exe N/A N/A _CreateConfigFile N/A product_dir_input.c N/A N/A N/A run_analyzer N/A N/A EnsureContains matched False N/A N/A _CreateConfigFile N/A subdir/subdir_source2.c N/A N/A N/A run_analyzer N/A N/A EnsureContains matched True build_targets N/A exe N/A N/A _CreateConfigFile N/A parent_source.c N/A N/A N/A run_analyzer N/A N/A EnsureContains matched True build_targets N/A exe exe3 N/A N/A _CreateConfigFile N/A subdir/subdir_source.h N/A N/A N/A run_analyzer N/A N/A EnsureContains matched True build_targets N/A exe N/A N/A _CreateConfigFile N/A exe2.c subdir/subdir2b_source.c N/A exe exe3 N/A N/A run_analyzer N/A N/A EnsureContains matched True targets N/A exe3 build_targets N/A exe2 exe3 N/A N/A _CreateConfigFile N/A exe2.c subdir/subdir2b_source.c N/A exe N/A N/A run_analyzer N/A N/A EnsureContains matched True build_targets N/A exe2 exe3 N/A N/A _CreateConfigFile N/A exe2.c subdir/subdir2b_source.c N/A exe exe N/A N/A run_analyzer N/A N/A EnsureContains matched True build_targets N/A exe2 exe3 N/A N/A _CreateConfigFile N/A exe2.c N/A exe N/A N/A run_analyzer N/A N/A EnsureContains matched True build_targets N/A exe2 N/A N/A _CreateConfigFile N/A exe2.c N/A N/A N/A run_analyzer N/A N/A EnsureContains matched True build_targets N/A exe2 N/A N/A _CreateConfigFile N/A subdir/subdir2b_source.c exe2.c N/A N/A N/A run_analyzer N/A N/A EnsureContains matched True build_targets N/A exe2 exe3 N/A N/A _CreateConfigFile N/A subdir/subdir2b_source.c N/A exe3 N/A N/A run_analyzer N/A N/A EnsureContains matched True targets N/A exe3 build_targets N/A exe3 N/A N/A _CreateConfigFile N/A exe2.c N/A N/A N/A run_analyzer N/A N/A EnsureContains matched True build_targets N/A exe2 N/A N/A _CreateConfigFile N/A foo.c N/A N/A N/A run_analyzer N/A N/A EnsureContains matched True build_targets N/A exe N/A N/A _CreateConfigFile N/A subdir2/d.cc N/A exe exe2 foo exe3 N/A N/A run_analyzer2 N/A N/A EnsureContains matched True targets N/A exe foo build_targets N/A exe N/A N/A _CreateConfigFile N/A subdir2/subdir.includes.gypi N/A exe exe2 foo exe3 N/A N/A run_analyzer2 N/A N/A EnsureContains matched True targets N/A exe foo build_targets N/A exe N/A N/A _CreateConfigFile N/A subdir2/subdir.gyp N/A exe exe2 foo exe3 N/A N/A run_analyzer2 N/A N/A EnsureContains matched True targets N/A exe foo build_targets N/A exe N/A N/A _CreateConfigFile N/A test2.includes.gypi N/A exe exe2 foo exe3 N/A N/A run_analyzer2 N/A N/A EnsureContains matched True targets N/A exe exe2 exe3 build_targets N/A exe exe2 exe3 N/A N/A _CreateConfigFile N/A common.gypi N/A exe exe2 foo exe3 N/A N/A run_analyzer2 -Icommon.gypi N/A N/A EnsureMatchedAll N/A exe exe2 foo exe3 N/A N/A _CreateConfigFile N/A d.c f.c N/A a N/A N/A run_analyzer3 N/A N/A EnsureContains matched True targets N/A a build_targets N/A a b N/A N/A _CreateConfigFile N/A f.c N/A a N/A N/A run_analyzer3 N/A N/A EnsureContains matched True targets N/A a build_targets N/A a b N/A N/A _CreateConfigFile N/A f.c N/A N/A N/A run_analyzer3 N/A N/A EnsureContains matched True build_targets N/A a b N/A N/A _CreateConfigFile N/A c.c e.c N/A N/A N/A run_analyzer3 N/A N/A EnsureContains matched True build_targets N/A a b c e N/A N/A _CreateConfigFile N/A d.c N/A a N/A N/A run_analyzer3 N/A N/A EnsureContains matched True targets N/A a build_targets N/A a b N/A N/A _CreateConfigFile N/A a.c N/A a b N/A N/A run_analyzer3 N/A N/A EnsureContains matched True targets N/A a build_targets N/A a N/A N/A _CreateConfigFile N/A a.c N/A a b N/A N/A run_analyzer3 N/A N/A EnsureContains matched True targets N/A a build_targets N/A a N/A N/A _CreateConfigFile N/A d.c N/A a b N/A N/A run_analyzer3 N/A N/A EnsureContains matched True targets N/A a b build_targets N/A a b N/A N/A _CreateConfigFile N/A f.c N/A a N/A N/A run_analyzer3 N/A N/A EnsureContains matched True targets N/A a build_targets N/A a b N/A N/A _CreateConfigFile N/A a.c N/A a N/A N/A run_analyzer3 N/A N/A EnsureContains matched True targets N/A a build_targets N/A a N/A N/A _CreateConfigFile N/A a.c N/A N/A N/A run_analyzer3 N/A N/A EnsureContains matched True build_targets N/A a N/A N/A _CreateConfigFile N/A d.c N/A N/A N/A run_analyzer3 N/A N/A EnsureContains matched True build_targets N/A a b N/A N/A _CreateConfigFile N/A f.c N/A N/A N/A run_analyzer4 N/A N/A EnsureContains matched True build_targets N/A e f N/A N/A _CreateConfigFile N/A d.c N/A N/A N/A run_analyzer4 N/A N/A EnsureContains matched True build_targets N/A a b c d N/A N/A _CreateConfigFile N/A i.c N/A N/A N/A run_analyzer4 N/A N/A EnsureContains matched True build_targets N/A h N/A N/A N/A test pass_test