useEngineForTest static method

  1. @visibleForTesting
MobileRag useEngineForTest(
  1. RagEngine engine
)

(FOR TESTING ONLY) Makes the real facade use engine, for example a mock, without loading the native library. Undo it with setMockInstance(null).

Implementation

@visibleForTesting
static MobileRag useEngineForTest(RagEngine engine) {
  _engine = engine;
  return _instance = MobileRag._();
}