cue/load: add test case for non-package directories
Currently if we use a pattern like `./...:foo` and there's a `package
foo` file in the root directory, every single directory counts as an
instance of package foo even if it doesn't have any `package foo` files.
This can result in serious performance issues.
We add a test to demonstrate that issue and test a few other edge cases.
We'll fix the issue in the next CL.
Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
Change-Id: Iaeb2440dec3ac3af29ce1472e6cf4f459837ca48
Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1230081
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>