Socket
Socket
Sign inDemoInstall

@tsmirror/fuzzer

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tsmirror/fuzzer

Fuzzer based on @tsmirror/reflect


Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

fuzzer

Toy fuzzer that calls a function with every possible arguments.

Usage

import { reflected } from "@tsmirror/reflect";
import fuzzer from "@tsmirror/fuzzer";
import assert from "assert";

fuzzer((x: string, y: string, z: string) => {
    assert([x, y, z].concat("") === x + y + z, "Unexpected Array.concat behaviour");
})

Note

  • For string, it uses the minimaxir/big-list-of-naughty-strings
  • For numbers, it uses a variety of edge case (0, -1, Infinity, ...)
  • Enums are tested with all values
  • Object, Interface, Tupple, Union are the cartesian products of their member's possible values.
  • Other types are not yet handled

FAQs

Package last updated on 15 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc