registerTest method
Registers a declared test for scope child counts.
Implementation
void registerTest({required String? packagePath}) {
final resolvedPackagePath = packagePath ?? currentPackagePath;
_scopeForPath(
const <String>[],
packagePath: resolvedPackagePath,
).expectedChildrenCount++;
final path = <String>[];
for (final group in _declarationStack) {
path.add(group.name);
_scopeForPath(
path,
packagePath: resolvedPackagePath,
).expectedChildrenCount++;
}
}