testing static method

Configuration optimized for testing environments.

Features:

  • Minimal logging
  • Very short timeouts
  • Small caches for fast cleanup
  • Auto-sync disabled

Implementation

static DatumConfig testing() {
  return const DatumConfig(
    autoSyncInterval: Duration(hours: 1),
    autoStartSync: false,
    syncTimeout: Duration(seconds: 10),
    enableLogging: false,
    logLevel: LogLevel.error,
    enablePerformanceLogging: false,
    changeCacheDuration: Duration(seconds: 5),
    maxChangeCacheSize: 50,
    changeCacheCleanupInterval: Duration(seconds: 5),
    remoteSyncBatchSize: 10,
    remoteStreamBatchSize: 5,
    progressEventFrequency: 5,
    remoteEventDebounceTime: Duration(milliseconds: 1),
  );
}