Module Expr Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier ClassDef bases AttributeLoad NameLoad attr body Pass decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Dict decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr TupleLoad NameLoad TupleLoad Str Dict Str Str BinOpMod Str TupleLoad NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr ListComp NameLoad comprehension NameStore AttributeLoad AttributeLoad NameLoad attr attr CompareNotEq SubscriptLoad NameLoad Index Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str For NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword ListLoad Str keyword AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad body Pass Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore BinOpMult Str Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str For NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword ListLoad Str keyword AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad body Pass Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr TryFinally body Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign NameStore Str Assign NameStore BinOpAdd BinOpAdd BinOpMult Str BinOpSub AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Str BinOpMult Str Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str For NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword ListLoad Str keyword AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad body Pass Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr BinOpSub AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr Num Expr Call AttributeLoad NameLoad attr NameLoad finalbody Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad NameLoad keyword AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr For NameStore Call AttributeLoad NameLoad attr Str NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword AttributeLoad NameLoad attr body Pass Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad NameLoad For NameStore Call AttributeLoad NameLoad attr Str NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword AttributeLoad NameLoad attr body Pass Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad NameLoad keyword NameLoad For NameStore Call AttributeLoad NameLoad attr Str NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword AttributeLoad NameLoad attr body Pass Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num For NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Str attr AttributeLoad NameLoad attr attr Str keyword AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad
N/A N/A Tests for grr.lib.flows.general.grep. N/A os grr.client.client_actions searching grr.lib action_mocks grr.lib aff4 grr.lib data_store grr.lib flags grr.lib rdfvalue grr.lib test_lib grr.lib.flows.general grep grr.lib.rdfvalues client rdf_client grr.lib.rdfvalues paths rdf_paths grr.lib.rdfvalues standard rdf_standard GrepTests N/A N/A test_lib FlowTestsBaseclass N/A N/A N/A TestSearchFileContentWithFixture N/A GrepTests N/A FlushVFSCache N/A N/A self N/A N/A N/A N/A N/A test_lib ClientVFSHandlerFixture cache N/A N/A CreateFile N/A N/A self filename data N/A N/A N/A N/A N/A self FlushVFSCache N/A N/A N/A N/A N/A test_lib client_fixture VFS append N/A filename N/A VFSFile N/A aff4:stat aff4:size N/A 
st_mode: 33261
st_ino: 1026267
st_dev: 51713
st_nlink: 1
st_uid: 0
st_gid: 0
st_size: 60064
st_atime: 1308964274
st_mtime: 1285093975
st_ctime: 1299502221
st_blocks: 128
st_blksize: 4096
st_rdev: 0
pathspec {
  pathtype: OS
  path: '%s'
}
resident: '%s'
 N/A filename data N/A len data N/A DeleteFile N/A N/A self filename N/A N/A N/A N/A N/A self FlushVFSCache N/A N/A N/A test_lib client_fixture VFS N/A path N/A path N/A N/A test_lib client_fixture VFS N/A N/A path N/A 0 filename N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestSearchFileContentWithFixture self setUp N/A N/A self client_mock N/A N/A action_mocks ActionMock Grep StatFile Find N/A N/A self vfs_overrider N/A N/A test_lib VFSOverrider N/A N/A N/A rdf_paths PathSpec PathType OS N/A test_lib ClientVFSHandlerFixture N/A N/A N/A N/A self vfs_overrider Start N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A super TestSearchFileContentWithFixture self tearDown N/A N/A N/A N/A self vfs_overrider Stop N/A testNormalGrep N/A N/A self N/A N/A N/A output_path analysis/grep1 N/A grepspec N/A N/A rdf_client BareGrepSpec mode N/A N/A N/A rdf_client GrepSpec Mode FIRST_HIT literal hello N/A _ N/A N/A test_lib TestFlowHelper SearchFileContent N/A self client_mock client_id N/A self client_id paths N/A /proc/10/cmdline pathtype N/A N/A N/A rdf_paths PathSpec PathType OS token N/A self token output output_path grep grepspec N/A N/A N/A fd N/A N/A N/A aff4 FACTORY Open N/A N/A N/A self client_id Add output_path token N/A self token N/A N/A N/A self assertEqual N/A len fd 1 N/A N/A N/A self assertEqual N/A N/A fd N/A 0 offset 3 N/A N/A N/A self assertEqual N/A fd N/A 0 lshello world'-l N/A N/A N/A self assertEqual N/A N/A fd N/A 0 length 18 N/A testMultipleHits N/A N/A self N/A N/A N/A filename /fs/os/c/Downloads/grepfile.txt N/A data N/A random content here. I am a HIT!! 100 N/A N/A N/A self CreateFile filename data N/A output_path analysis/grep2 N/A grepspec N/A N/A rdf_client BareGrepSpec mode N/A N/A N/A rdf_client GrepSpec Mode ALL_HITS literal HIT N/A _ N/A N/A test_lib TestFlowHelper SearchFileContent N/A self client_mock client_id N/A self client_id paths N/A /c/Downloads/grepfile.txt pathtype N/A N/A N/A rdf_paths PathSpec PathType OS grep grepspec token N/A self token output output_path N/A N/A N/A fd N/A N/A N/A aff4 FACTORY Open N/A N/A N/A self client_id Add output_path token N/A self token N/A N/A N/A self assertEqual N/A len fd 100 N/A N/A N/A self assertEqual N/A N/A fd N/A 15 offset 523 N/A N/A N/A self assertEqual N/A fd N/A 38 e. I am a HIT!!random c N/A N/A N/A self assertEqual N/A fd N/A 99 e. I am a HIT!! N/A N/A N/A self DeleteFile filename N/A testPatternAtBufsize N/A N/A self N/A N/A N/A old_size N/A N/A searching Grep BUFF_SIZE N/A N/A N/A N/A N/A searching Grep BUFF_SIZE 10000 N/A filename /fs/os/c/Downloads/grepfile.txt N/A data N/A N/A N/A X N/A N/A N/A searching Grep BUFF_SIZE N/A len HIT HIT N/A X 1000 N/A N/A N/A self CreateFile filename data N/A output_path analysis/grep N/A output_urn N/A N/A N/A self client_id Add output_path N/A N/A N/A N/A data_store DB DeleteSubject output_urn token N/A self token N/A grepspec N/A N/A rdf_client BareGrepSpec mode N/A N/A N/A rdf_client GrepSpec Mode FIRST_HIT literal HIT N/A _ N/A N/A test_lib TestFlowHelper SearchFileContent N/A self client_mock client_id N/A self client_id paths N/A /c/Downloads/grepfile.txt pathtype N/A N/A N/A rdf_paths PathSpec PathType OS token N/A self token output output_path grep grepspec N/A N/A N/A fd N/A N/A N/A aff4 FACTORY Open output_urn token N/A self token N/A N/A N/A self assertEqual N/A len fd 1 N/A N/A N/A self assertEqual N/A N/A fd N/A 0 offset N/A N/A N/A searching Grep BUFF_SIZE N/A len HIT N/A N/A N/A self assertEqual N/A N/A fd N/A 0 length 23 N/A N/A N/A self DeleteFile filename N/A N/A N/A N/A searching Grep BUFF_SIZE old_size N/A N/A TestSearchFileContent N/A GrepTests N/A testSearchFileContents N/A N/A self N/A N/A N/A pattern searching/*.log N/A client_mock N/A N/A action_mocks ActionMock Find Grep StatFile N/A path N/A N/A N/A os path join N/A self base_path pattern N/A args N/A N/A grep SearchFileContentArgs paths N/A path pathtype N/A N/A N/A rdf_paths PathSpec PathType OS N/A N/A N/A args grep literal N/A N/A rdf_standard LiteralExpression session opened for user dearjohn N/A N/A N/A args grep mode N/A N/A N/A rdf_client GrepSpec Mode ALL_HITS N/A _ N/A N/A test_lib TestFlowHelper SearchFileContent client_mock client_id N/A self client_id output analysis/grep/testing args args token N/A self token N/A N/A N/A fd N/A N/A N/A aff4 FACTORY Open N/A N/A N/A N/A rdfvalue RDFURN N/A self client_id Add /analysis/grep/testing token N/A self token N/A N/A N/A self assertEqual N/A len fd 1 N/A first N/A fd N/A 0 N/A N/A N/A self assertEqual N/A first offset 350 N/A N/A N/A self assertEqual N/A first data session): session opened for user dearjohn by (uid=0 N/A testSearchFileContentsNoGrep N/A N/A self N/A N/A N/A Search files without a grep specification. N/A pattern searching/*.log N/A client_mock N/A N/A action_mocks ActionMock Find Grep StatFile N/A path N/A N/A N/A os path join N/A self base_path pattern N/A args N/A N/A grep SearchFileContentArgs paths N/A path N/A _ N/A N/A test_lib TestFlowHelper SearchFileContent client_mock client_id N/A self client_id output analysis/grep/testing args args token N/A self token N/A N/A N/A fd N/A N/A N/A aff4 FACTORY Open N/A N/A N/A N/A rdfvalue RDFURN N/A self client_id Add /analysis/grep/testing token N/A self token N/A N/A N/A self assertEqual N/A len fd 3 N/A testSearchFileContentDownload N/A N/A self N/A N/A N/A pattern searching/*.log N/A client_mock N/A N/A action_mocks ActionMock Find Grep StatFile FingerprintFile HashBuffer TransferBuffer N/A path N/A N/A N/A os path join N/A self base_path pattern N/A args N/A N/A grep SearchFileContentArgs paths N/A path also_download True N/A _ N/A N/A test_lib TestFlowHelper SearchFileContent client_mock client_id N/A self client_id output analysis/grep/testing args args token N/A self token N/A N/A N/A fd N/A N/A N/A aff4 FACTORY Open N/A N/A N/A N/A rdfvalue RDFURN N/A self client_id Add /analysis/grep/testing token N/A self token N/A N/A N/A self assertEqual N/A len fd 3 N/A log N/A N/A N/A N/A N/A aff4 FACTORY Open N/A N/A N/A N/A N/A N/A N/A N/A rdfvalue RDFURN N/A self client_id Add /fs/os/ Add N/A self base_path Add searching token N/A self token OpenChildren N/A N/A N/A N/A self assertTrue N/A isinstance log N/A aff4 VFSBlobImage N/A N/A N/A self assertGreater N/A len log 0 N/A N/A main N/A N/A argv N/A N/A N/A N/A N/A test_lib GrrTestProgram argv argv N/A N/A N/A __name__ __main__ N/A N/A N/A N/A flags StartMain main