---
cases:
  - data: {}
    modules:
      - |
        package topdown_test_partial

        __result__ = _result {
          data.partial.ex.foo = _result
        }
      - |
        package partial.ex

        foo["bar"] = 0

        foo["baz"] = 1

        foo["*"] = [1, 2, 3] {
          input.foo = 7
        }
      - |
        package ex

        foo["bar"] = 0

        foo["baz"] = 1

        foo["*"] = [1, 2, 3] {
          input.foo = 7
        }

        bar["x"]

        bar["y"]

        bar["*"] {
          input.foo = 7
        }
    note: partialdocconstants/set-1
    query: data.ex.bar.x = x
    want_result:
      - x: x
