#NEWLINE# def test_default_name_and_sources( self ) : #NEWLINE# #INDENT# self . create_file ( 'src/go/src/foo/jake.go' ) #NEWLINE# self . create_file ( 'src/go/src/foo/sub/jane.go' ) #NEWLINE# self . add_to_build_file ( 'src/go/src/foo' , dedent ( '\n        {target_alias}()\n      ' . format ( target_alias = self . target_type . alias ( ) ) ) ) #NEWLINE# go_local_source_target = self . target ( 'src/go/src/foo' ) #NEWLINE# self . assertIsNotNone ( go_local_source_target ) #NEWLINE# self . assertEqual ( 'src/foo' , go_local_source_target . import_path ) #NEWLINE# self . assertEqual ( [ 'src/foo/jake.go' ] , list ( go_local_source_target . sources_relative_to_source_root ( ) ) )