Closed johnpryan closed 2 years ago
I'll defer to @csells here. Sounds good in theory!
@csells this should be ready for another look, minus the failing test
The test isn't failing. It's not meant to throw an exception. I had that code in there to print the exception while I was debugging the behavior for which the test was written.
and the test was failing but shouldn't have been. fixed.
This changes all the
debugPrint
and related code to use a single Logger instance, which can be toggled usingsetLogging()
. The public API is stilldebugLogDiagnostics
, though.This also cleans up the test output, which can be re-enabled using the
enableLogs
constant ingo_router_test.dart
.Also modifies some tests to use
throwsException
instead of a try / catch.