Skip to main content

A very-simple-subset-of-haskell fuzzer

Project description

A very-simple-subset-of-haskell fuzzer. With the ability to generate lexical tokens as well as plain code.

```
module Generated (function0,function1,function2) where

function0 :: Int -> Bool -> Bool -> Bool -> Bool -> Int -> Int
function0 a b c d e f = (function1 (2 /= 7) False False)

function1 :: Bool -> Bool -> Bool -> Int
function1 a b c = (8 * 0)

function2 :: Bool -> Int
function2 a = 1
```

it's available on pip by `pip install huzzer`

## Setup
Make sure you have python3 on your machine (`which python3` should print a path to it).

Set up a `virtualenv` with `virtualenv -p \`which python3\` env`

Activate the environment with `source env/bin/activate`

Install requirements `pip install -r requirements.txt`

Then you should be good to go. To leave the virtualenv, type `deactivate`

## Testing
To run all of the tests, run `nosetests`.

To run larger acceptance tests (against the ghc compiler), you will need `ghc` and `parallel` installed.
run `./large_acceptance_test.sh <number of tests>`

## TODOs
* multiple definitions for functions

### Distribution
make sure to remove older versions of the package
```
python setup.py sdist bdist_wheel
twine upload dist/*
```


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

huzzer-0.1.1.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

huzzer-0.1.1-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

Details for the file huzzer-0.1.1.tar.gz.

File metadata

  • Download URL: huzzer-0.1.1.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for huzzer-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8e9344c01ee047c92158ad86b3b2e9df513f9df8bd06485ad2056cd90b035999
MD5 b20db6d64b15f97b68b8f80775a378d0
BLAKE2b-256 11977741839bfeaae7bf65108c8d4b44e38976137f39bbf0c4f98ba249f89c57

See more details on using hashes here.

File details

Details for the file huzzer-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for huzzer-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d5d8edee2f475d93c4bbbea0d1e6799b23900a6647c6f4ce69aab336acaac350
MD5 6714dff32c359a59a674f422b9b27ed3
BLAKE2b-256 ea020b3425026bdbfd8fc022e1c9a68ae8615386649761efa4517da462291059

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page