test: remove redundant coverage and shorten timers
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user