A universally-unique, lexicographically-sortable, identifier generator
78
{
"context": "This criteria evaluates how well the engineer uses the ULID package's decodeTime function and related validation functions to implement a time-based ULID filter. The focus is on proper usage of decodeTime to extract timestamps and isValid to handle invalid ULIDs.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses decodeTime",
"description": "Uses the decodeTime function from the ulid package to extract timestamps from ULID strings",
"max_score": 40
},
{
"name": "Uses isValid",
"description": "Uses the isValid function from the ulid package to validate ULIDs before processing or uses try-catch to handle invalid ULIDs when calling decodeTime",
"max_score": 25
},
{
"name": "Proper filtering logic",
"description": "Correctly filters ULIDs by comparing decoded timestamps against the provided time range (inclusive on both boundaries)",
"max_score": 20
},
{
"name": "Handles invalid ULIDs",
"description": "Implementation gracefully handles invalid ULID strings by skipping them rather than throwing errors that halt execution",
"max_score": 15
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-ulidevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10