An open API service indexing awesome lists of open source software.

https://github.com/gomicro/penname

A mocked writer for those times when you don't want a real one
https://github.com/gomicro/penname

golang io mock tdd testing testing-library

Last synced: 4 months ago
JSON representation

A mocked writer for those times when you don't want a real one

Awesome Lists containing this project

README

          

# Pen Name
[![Build Status](https://travis-ci.org/gomicro/penname.svg)](https://travis-ci.org/gomicro/penname)
[![Go Reportcard](https://goreportcard.com/badge/github.com/gomicro/penname)](https://goreportcard.com/report/github.com/gomicro/penname)
[![GoDoc](https://godoc.org/github.com/gomicro/penname?status.svg)](https://godoc.org/github.com/gomicro/penname)
[![License](https://img.shields.io/github/license/gomicro/penname.svg)](https://github.com/gomicro/penname/blob/master/LICENSE.md)
[![Release](https://img.shields.io/github/release/gomicro/penname.svg)](https://github.com/gomicro/penname/releases/latest)

A mock that implements the Closer & Writer interfaces for testing.

# Requirements
Golang version 1.6 or higher

# Installation

```
go get github.com/gomicro/penname
```

# Usage
See the [examples](https://godoc.org/github.com/gomicro/penname#pkg-examples) within the docs for ways to use the library.

# Versioning
The library will be versioned in accordance with [Semver 2.0.0](http://semver.org). See the [releases](https://github.com/gomicro/penname/releases) section for the latest version. Until version 1.0.0 the libary is considered to be unstable.

It is always highly recommended to vendor the version you are using.

# License
See [LICENSE.md](./LICENSE.md) for more information.