summaryrefslogtreecommitdiff
path: root/python/python.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2018-03-01 11:20:25 -0800
committer Colin Cross <ccross@android.com> 2018-03-02 16:47:13 -0800
commit8673b5b959def87c0f3f5922b1eea430b1215b62 (patch)
treef89957dd553abb846c7d1d8e47f38f951fadc78b /python/python.go
parentdfce764476b6be22907d555097b7346cfa16f0ca (diff)
Rewrite symbol_inject to be testable
Parse the machine-specific symbol tables into a custom symbol table object and use a single function to find the offset and size of the symbol in the custom table. Make the functions to convert a machine-specific symbol table into the custom table also take mocks, and provide functions to dump mocks from real files. Add tests that take the mocks and verify they produce the right offset and size. Test: cmd/symbol_inject/*_test.go Change-Id: I25654032b5017dd13a9a1fe29f8b8826ce5bc82b
Diffstat (limited to 'python/python.go')
0 files changed, 0 insertions, 0 deletions