services/device/device: introduce test for glob functionality

glob_test.go tests the glob logic directly, instead of relying on the behavior
of various subcommand tests.  To make testing the glob internal library easy,
exported a bunch of identifiers in glob.go (since it's all part of the main
package, there are no practical implications to exporting the
identifiers). While at it, made GlobResults be passed by pointer inside the
library for efficiency.

For now, the only test case verifies that all results appear as expected, and in
the expected order. I'll add more test cases in future cls.

Change-Id: Iea22ddde3db17be3a6e0a6840ef55d54591a9ff7
8 files changed
tree: 68db1ea516979fc2214bb021339c5c5b0a51a7e2
  1. cmd/
  2. examples/
  3. internal/
  4. lib/
  5. runtime/
  6. services/
  7. test/
  8. .gitignore
  9. AUTHORS
  10. CONTRIBUTORS
  11. envvar.go
  12. envvar_test.go
  13. LICENSE
  14. PATENTS
  15. README.md
  16. VERSION
README.md

Vanadium

This repository contains a reference implementation of the Vanadium APIs.

Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.