test: remove redundant coverage and shorten timers

This commit is contained in:
edde746
2026-07-13 02:15:03 +02:00
parent c4e9fa1650
commit e6e7d8cdfd
63 changed files with 90 additions and 1760 deletions
-14
View File
@@ -11,10 +11,6 @@ void main() {
test('allows empty ratingKey', () {
expect(buildGlobalKey(ServerId('server'), ''), 'server:');
});
test('rejects empty serverId', () {
expect(() => ServerId(''), throwsArgumentError);
});
});
group('parseGlobalKey', () {
@@ -48,14 +44,4 @@ void main() {
expect(result.ratingKey, '');
});
});
test('round-trip build → parse returns original components', () {
for (final pair in const [('s1', '42'), ('serverXYZ', '/library/metadata/123'), ('s', '')]) {
final built = buildGlobalKey(ServerId(pair.$1), pair.$2);
final parsed = parseGlobalKey(built);
expect(parsed, isNotNull);
expect(parsed!.serverId, pair.$1);
expect(parsed.ratingKey, pair.$2);
}
});
}