Skip to content

Add more tests for name type checks in setxattr, getxattr, fsetxattr, etc #626

Open
@humphd

Description

@humphd

We have a bunch of error paths not getting hit in our tests for fs.setxattr and fs.fsetxattr related to checking on the type of the name argument: https://codecov.io/gh/filerjs/filer/src/master/src/filesystem/implementation.js#L1404.

We need to add checks for passing a name that is the empty string, passing null/undefined/Object/etc non-strings for name to setxattr and fsetxattr, and passing invalid flags.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions