* Remove travis file * Apply pre-commit fixes * Modernize cmake file - Added JSON_VALIDATOR_SHARED_LIBS to properly handle shared-library - Bumped minimum cmake to 3.11 to use no-source add_library - Bumped minimum cmake to 3.14 to properly support FetchContent (FetchContent_MakeAvailable) - Converted Hunter package manager to FetchContent (It is plenty mature these days) - Added namespace to exported target - Made the cmake file compatible with FetchContent * Use simplified FetchContent CI * Add simple status messages * Handle nlohmann dependency Not an ideal approach, but required in order for the exported target to have appropriate linkage. Maybe this can be designed to become a PRIVATE link library, but then how does it ensure the target is installed? * Remove CMake-install test This will be moved to packaging integration tests * Enable code coverage * Reconfigure ci presets Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
86 lines
2.7 KiB
JSON
86 lines
2.7 KiB
JSON
[
|
|
{
|
|
"description": "uuid format",
|
|
"schema": {
|
|
"format": "uuid"
|
|
},
|
|
"tests": [
|
|
{
|
|
"description": "all upper-case",
|
|
"data": "2EB8AA08-AA98-11EA-B4AA-73B441D16380",
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all lower-case",
|
|
"data": "2eb8aa08-aa98-11ea-b4aa-73b441d16380",
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "mixed case",
|
|
"data": "2eb8aa08-AA98-11ea-B4Aa-73B441D16380",
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all zeroes is valid",
|
|
"data": "00000000-0000-0000-0000-000000000000",
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "wrong length",
|
|
"data": "2eb8aa08-aa98-11ea-b4aa-73b441d1638",
|
|
"valid": false
|
|
},
|
|
{
|
|
"description": "missing section",
|
|
"data": "2eb8aa08-aa98-11ea-73b441d16380",
|
|
"valid": false
|
|
},
|
|
{
|
|
"description": "bad characters (not hex)",
|
|
"data": "2eb8aa08-aa98-11ea-b4ga-73b441d16380",
|
|
"valid": false
|
|
},
|
|
{
|
|
"description": "no dashes",
|
|
"data": "2eb8aa08aa9811eab4aa73b441d16380",
|
|
"valid": false
|
|
},
|
|
{
|
|
"description": "too few dashes",
|
|
"data": "2eb8aa08aa98-11ea-b4aa73b441d16380",
|
|
"valid": false
|
|
},
|
|
{
|
|
"description": "too many dashes",
|
|
"data": "2eb8-aa08-aa98-11ea-b4aa73b44-1d16380",
|
|
"valid": false
|
|
},
|
|
{
|
|
"description": "dashes in the wrong spot",
|
|
"data": "2eb8aa08aa9811eab4aa73b441d16380----",
|
|
"valid": false
|
|
},
|
|
{
|
|
"description": "valid version 4",
|
|
"data": "98d80576-482e-427f-8434-7f86890ab222",
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "valid version 5",
|
|
"data": "99c17cbb-656f-564a-940f-1a4568f03487",
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "hypothetical version 6",
|
|
"data": "99c17cbb-656f-664a-940f-1a4568f03487",
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "hypothetical version 15",
|
|
"data": "99c17cbb-656f-f64a-940f-1a4568f03487",
|
|
"valid": true
|
|
}
|
|
]
|
|
}
|
|
]
|