Lines Matching refs:package
164 def assertTargetInWorkspace(self, name, package=''): argument
165 build_file = self.workspace_out_path.joinpath(package, 'BUILD.bazel')
175 def assertTargetNotInWorkspace(self, name, package=''): argument
176 build_file = self.workspace_out_path.joinpath(package, 'BUILD.bazel')
189 def assertInBuildFile(self, substring, package=''): argument
190 build_file = self.workspace_out_path.joinpath(package, 'BUILD.bazel')
193 def assertNotInBuildFile(self, substring, package=''): argument
194 build_file = self.workspace_out_path.joinpath(package, 'BUILD.bazel')
197 def assertFileInWorkspace(self, relative_path, package=''): argument
198 path = self.workspace_out_path.joinpath(package, relative_path)
201 def assertDirInWorkspace(self, relative_path, package=''): argument
202 path = self.workspace_out_path.joinpath(package, relative_path)
205 def assertFileNotInWorkspace(self, relative_path, package=''): argument
206 path = self.workspace_out_path.joinpath(package, relative_path)
495 package='example/tests',
513 package='example/tests',
535 'hello_world_test_device', package='example/tests'
538 'hello_world_test_host', package='example/tests'
555 'hello_world_test_device', package='example/tests'
558 'hello_world_test_host', package='example/tests'
586 package='example/tests',
590 'hello_world_test_device', package='example/tests'
613 package='example/tests',
641 package='example/tests',
665 package='example/tests',
688 package='example/tests',
706 'tradefed_host_driven_device_test(', package='example/tests'
730 package='example/tests',
733 'hello_world_test_device', package='example/tests'
736 'hello_world_test_host', package='example/tests'
756 'hello_world_test_device', package='example/tests'
759 'hello_world_test_host', package='example/tests'
814 package='example/tests',
832 package='example/tests',
911 package='example/tests',
915 'hello_world_test_device', package='example/tests'
1007 self.assertFileNotInWorkspace('BUILD.bazel', package=f'{module_path}')
1019 package=f'{bazel_mode.JDK_PACKAGE_NAME}',
1028 'BUILD.bazel', package=f'{bazel_mode.JDK_PACKAGE_NAME}'
1054 package='android-all',
1062 self.assertFileNotInWorkspace('BUILD.bazel', package='android-all')
1904 package = bazel_mode.Package('p')
1905 package.add_target(self.FakeTarget(target_name))
1908 package.add_target(self.FakeTarget(target_name))
1914 package = bazel_mode.Package(package_path)
1919 package.generate(self.workspace_out_path)
1924 package = bazel_mode.Package('p')
1937 package.add_target(target1)
1938 package.add_target(target2)
1940 package.generate(self.workspace_out_path)
1944 self.package_build_file_text(package),
1948 package = bazel_mode.Package('p')
1962 package.add_target(target1)
1963 package.add_target(target2)
1965 package.generate(self.workspace_out_path)
1969 self.package_build_file_text(package),
1973 package = bazel_mode.Package('p')
1976 package.add_target(target2) # Added out of order.
1977 package.add_target(target1)
1979 package.generate(self.workspace_out_path)
1981 self.assertIn('target2\n\ntarget1\n', self.package_build_file_text(package))
1993 def package_build_file_text(self, package): argument
1995 package.path, 'BUILD.bazel'