or run

tessl search
Log in

Version

Files

tile.json

rubric.jsonevals/scenario-3/

{
  "context": "This criteria evaluates the engineer's ability to use metro-memory-fs's canonical path resolution functionality (realpathSync) to resolve symbolic links and convert paths to their absolute canonical form. The focus is on correct usage of the realpathSync method and understanding of how it resolves symlinks.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses realpathSync",
      "description": "Implementation uses the realpathSync or realpathSync.native method from metro-memory-fs to resolve paths to their canonical form",
      "max_score": 50
    },
    {
      "name": "Passes filesystem instance",
      "description": "Correctly passes the filesystem instance parameter to realpathSync as the first argument (since metro-memory-fs uses instance methods)",
      "max_score": 20
    },
    {
      "name": "Handles symbolic links",
      "description": "The implementation correctly resolves symbolic links by using realpathSync, which follows all symlinks in the path to return the final canonical path",
      "max_score": 20
    },
    {
      "name": "Error propagation",
      "description": "Allows realpathSync to throw appropriate errors (like ENOENT for non-existent paths or ELOOP for circular symlinks) without unnecessary wrapping",
      "max_score": 10
    }
  ]
}