diff options
author | Graeme Connell <gconnell@google.com> | 2013-05-09 11:37:39 -0600 |
---|---|---|
committer | Graeme Connell <gconnell@google.com> | 2013-05-09 11:37:39 -0600 |
commit | 9c24784fe14567df778b2282ee25578d263c9afc (patch) | |
tree | 333ef990cbbb8a0f86194f5c3b2d2a564f6cfc8b /sqlite3.h | |
parent | Treat int as 64bit (diff) | |
download | golite-9c24784fe14567df778b2282ee25578d263c9afc.tar.gz golite-9c24784fe14567df778b2282ee25578d263c9afc.tar.xz |
Use file in os.TempDir() for tests.
Sometimes it's best to not create files in the directories where code lives...
for example, that directory might be read-only, or folks might be using
source-control or build systems that disallow that behavior. To fix this, we
create a file in the temp directory and use it instead.
We don't use ioutil.TempFile(), since that actually creates the file, and we'd
like the tests to run as if the file had never existed. We use 16 bytes from
crypto/rand to avoid people doing bad things with symlinks in the temp
directory.
Diffstat (limited to 'sqlite3.h')
0 files changed, 0 insertions, 0 deletions