https://github.com/bfontaine/edngen
Generate random EDN data
https://github.com/bfontaine/edngen
clojure edn testing
Last synced: 7 months ago
JSON representation
Generate random EDN data
- Host: GitHub
- URL: https://github.com/bfontaine/edngen
- Owner: bfontaine
- License: epl-1.0
- Created: 2018-08-04T11:09:18.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-12-15T21:54:20.000Z (almost 6 years ago)
- Last Synced: 2025-03-23T23:43:40.187Z (7 months ago)
- Topics: clojure, edn, testing
- Language: Clojure
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# edngen
`edngen` is a simple Clojure library/program to generate random EDN strings.
It’s based off [Clojure’s own EDN test suite][clj].I wrote it to generate tests for the [`edn_format`][py] Python library.
[clj]: https://github.com/clojure/clojure/blob/71511b7800e18c83377a322f43585a853b303698/test/clojure/test_clojure/edn.clj
[py]: https://github.com/swaroopch/edn_format#edn_format## Usage
### Library
```clojure
[edngen "0.0.2"]
``````clojure
(ns your.ns
(:require [edngen.core :as edngen]))(edngen) ; => "...some random edn..."
```### Program
lein run [N]
It generates `N` EDN string, one per line. If `N` is not given, it runs
infinitely.## Known Issues
The program doesn’t terminate when its output is truncated, e.g. `lein run |
head`.## License
Copyright © 2018-2019 Baptiste Fontaine
Distributed under the Eclipse Public License either version 1.0 or (at your
option) any later version.