You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Slightly refactors //tools/src/cmd/idlgen/main.go to better accommodate
future testing. Changes include:
* Making showUsage return an error instead of calling os.Exit
* Making run not rely on global flag state
* Updating parsing code to read and parse a file instead of relying on
ParseFiles, as that circumvents the filesystem dependency injection
All of these changes should be functional no-ops outside of tests.
Bug: 344014313
Change-Id: I7c22c1437b337df1714adab0f9e50fc2ec828527
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/282877
Reviewed-by: dan sinclair <dsinclair@chromium.org>
Commit-Queue: dan sinclair <dsinclair@chromium.org>
Auto-Submit: Brian Sheedy <bsheedy@google.com>
0 commit comments