* @brief Returns the number of datasets belonging to the given collection */
| 150 | * @brief Returns the number of datasets belonging to the given collection |
| 151 | */ |
| 152 | int DatasetModel::datasetCount(const QString& collection) { |
| 153 | int count = 0; |
| 154 | for (const QString& category : categories(collection)) { |
| 155 | for (const QString& subcategory : subcategories(collection, category)) { |
| 156 | count += datasets(collection, category, subcategory).size(); |
| 157 | } |
| 158 | } |
| 159 | return count; |
| 160 | } |
| 161 | |
| 162 | /** |
| 163 | * @brief Returns the number of datasets belonging to the given collection and category |
no test coverage detected