testing library
Testing utilities for Infobits
Classes
- InfobitsTestConfig
- Test configuration for Infobits
- LogEntry
- Represents a log entry
- MockInfobitsAnalytics
- Mock implementation of InfobitsAnalytics for testing
- MockLogger
- Mock implementation of Logger for testing
- TrackedEvent
- Represents a tracked event
Enums
- LoggingLogLevel
- The different log event levels
Functions
-
createTestException(
[String message = 'Test exception']) → Exception - Create a test exception
-
createTestStackTrace(
) → StackTrace - Create a test stack trace
-
createTestWidget(
Widget child, {InfobitsTestConfig? config}) → Widget - Create a test widget with Infobits mocks
-
verifyEventTracked(
MockInfobitsAnalytics analytics, String eventName, {Map< String, dynamic> ? expectedProperties}) → bool - Verify that an event was tracked
-
verifyLogRecorded(
MockLogger logger, String message, {LoggingLogLevel? level}) → bool - Verify that a log was recorded
-
waitForAsync(
[Duration duration = const Duration(milliseconds: 100)]) → Future< void> - Wait for async operations