tree: 3b9cb70622d8bfe5912d1bfaaddf09c0de395cb6 [path history] [tgz]
  1. one/
  2. three/
  3. two/
  4. BUILD.in
  5. BUILD.out
  6. README.md
  7. test.yaml
  8. WORKSPACE
gazelle/testdata/first_party_dependencies/README.md

First-party dependencies

There are 2 different scenarios that the extension needs to handle:

  1. Import statements that match sub-directory names.
  2. Import statements that don't match sub-directory names and need a hint from the user via directives.

This test case asserts that the generated targets cover both scenarios.

With the hint we need to check if it's a .py file or a directory with __init__.py file.