Skip to content

Commit 98d46ba

Browse files
committed
docs(test): add fileoverview headers to comprehensive test files
Add descriptive @fileoverview headers to comprehensive test suites: - purl-edge-cases.test.mts: edge cases, coverage, boundary conditions - purl-spec.test.mts: official purl-spec compliance validation
1 parent e40fc29 commit 98d46ba

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

test/purl-edge-cases.test.mts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2020
SOFTWARE.
2121
*/
2222

23+
/**
24+
* @fileoverview Comprehensive edge case and coverage tests for PackageURL.
25+
* Tests URL scheme handling, component validation, special characters, version separators,
26+
* subpath/qualifier handling, type-specific normalizations, parameter types, roundtrip
27+
* consistency, error messages, encoding/decoding, normalization, validation, and internal utilities.
28+
* This file aims for complete code coverage of all edge cases and boundary conditions.
29+
*/
2330
import { describe, expect, it } from 'vitest'
2431

2532
import {

test/purl-spec.test.mts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2020
SOFTWARE.
2121
*/
2222

23+
/**
24+
* @fileoverview Official Package URL specification compliance tests.
25+
* Tests PackageURL implementation against the official purl-spec test suite (test/data/*.json).
26+
* Validates parsing, building, and roundtrip behavior for all package types defined in the spec,
27+
* ensuring strict compliance with expected successes and failures.
28+
*/
2329
import path from 'node:path'
2430

2531
import { glob } from 'fast-glob'

0 commit comments

Comments
 (0)