Commit Graph

3 Commits

Author SHA1 Message Date
Abhinav Gupta 1bdf2a8667
all: Don't use cmdutil.Diag in tests
Update all tests that use cmdutil.Diag directly
(because these write to the test process' stdout/stderr)
and instead use diagtest.Sink to have them write
to the test's logger.
2023-03-13 12:54:04 -07:00
Abhinav Gupta e395deef6b
all: Assert => Assertf
Migrates all remaining usages of
`contract.Assert*` and `contract.Require*` to the f variants,
which require adding meaningful error messages.

There were a couple cases where a `testing.T` or `testing.B`
was already available.
For those, this uses t.FailNow or require.NoError.

Refs 
2023-03-03 14:37:43 -08:00
Aaron Friel 3cd0665a2f
[schema] Faster schema loading via caching alongside plugins ()
* [engine] cache schemas in schema loader to files

* [engine] single instance mmapped schemas, preventing use-after-free segfault

* fix: clean up remaining references to close method

* chore: pr feedback
2022-06-13 23:27:11 -07:00