mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-09-03 16:50:40 +02:00
perf: harden download and persistence lifecycle
This commit is contained in:
@@ -87,5 +87,21 @@ void main() {
|
||||
);
|
||||
expect(autoVacuumMatches.single.start, lessThan(onCreateIndex));
|
||||
});
|
||||
|
||||
test('enables delete triggers for replace-backed FTS synchronization', () {
|
||||
expect(source, contains('PRAGMA recursive_triggers = ON'));
|
||||
});
|
||||
});
|
||||
|
||||
group('FTS5 search query', () {
|
||||
test(
|
||||
'quotes literal input and leaves unsupported short terms to fallback',
|
||||
() {
|
||||
expect(ftsPhraseSearchQuery('ab'), isNull);
|
||||
expect(ftsPhraseSearchQuery('beat'), '"beat"');
|
||||
expect(ftsPhraseSearchQuery('foo"bar'), '"foo""bar"');
|
||||
expect(ftsPhraseSearchQuery('a\u0000b'), isNull);
|
||||
},
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user