An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 5.3% on proxy.golang.org
Top 5.8% dependent packages on proxy.golang.org
Top 4.7% dependent repos on proxy.golang.org

proxy.golang.org : github.com/tunabay/go-randdata

Package randdata provides a mechanism for unit testing to generate and verify reproducible pseudo-random byte sequences. Reader is the pseudo-random byte sequence generator. It implements the io.Reader interface and can be Read the generated byte sequence. Verifier is the Reader companion object that implements the io.Writer interface. It verifies that the data written is exactly the same as the byte sequence generated by the Reader. It is designed for unit testing of programs that process data from files or networks and is used to verify that the processed data is not corrupted. The Reader also generates "jitter" to reading operation. In the above example, calling Read method with the 256 bytes buffer returns randomly shorter written length. While the Read method of the io.Reader interface can return shorter length than passed buffer, program should be able to handle that. If the program can not handle this behavior, it should use bufio.Reader, io.ReadFull, or ioutil.ReadAll.

Registry - Source - Documentation - JSON - codemeta.json
purl: pkg:golang/github.com/tunabay/go-randdata
License: MIT
Latest release: over 5 years ago
First release: over 5 years ago
Namespace: github.com/tunabay
Dependent packages: 1
Dependent repositories: 1
Last synced: 5 days ago

    Loading...
    Readme
    Loading...