parameters: (self)
docstring: Validate that test-only dependencies aren't included in //source/...
  
      Raises:
        DependencyError: on a dependency validation error.
docstring_summary: Validate that test-only dependencies aren't included in //source/...
docstring_tokens: Validate that test - only dependencies aren t included in // source / ...
function: def ValidateTestOnlyDeps(self):
      """Validate that test-only dependencies aren't included in //source/...
  
      Raises:
        DependencyError: on a dependency validation error.
      """
      print('Validating test-only dependencies...')
      queried_source_deps = self._build_graph.QueryExternalDeps('//source/...')
      expected_test_only_deps = self._dep_info.DepsByUseCategory('test_only')
      bad_test_only_deps = expected_test_only_deps.intersection(queried_source_deps)
      if len(bad_test_only_deps) > 0:
        raise DependencyError(f'//source depends on test-only dependencies: {bad_test_only_deps}')
function_tokens: def ValidateTestOnlyDeps ( self ) : print ( 'Validating test-only dependencies...' ) queried_source_deps = self . _build_graph . QueryExternalDeps ( '//source/...' ) expected_test_only_deps = self . _dep_info . DepsByUseCategory ( 'test_only' ) bad_test_only_deps = expected_test_only_deps . intersection ( queried_source_deps ) if len ( bad_test_only_deps ) > 0 : raise DependencyError ( f'//source depends on test-only dependencies: {bad_test_only_deps}' )