• Stars
    star
    23
  • Rank 982,441 (Top 20 %)
  • Language
    Go
  • License
    MIT License
  • Created almost 13 years ago
  • Updated over 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Mock object for Go http.ResponseWriter

mockhttp -- Go package for unit testing HTTP serving

Unit testing HTTP services written in Go means you need to call their ServeHTTP receiver. For this, you need something that fulfills the http.ResponseWriter interface, and you need to populate a http.Request struct with suitable-looking data. mockhttp.go helps you do these tasks, without excessive copy-pasting.

See mockhttp_test.go for an example of usage.

More Repositories

1

gitosis

software for hosting git repositories
Python
411
star
2

becky

[OBSOLETE] Go asset embedding for use with `go generate`
Go
109
star
3

alone

Go Alone is an experiment into running Go as an appliance-oriented operating system
Go
76
star
4

httpunix

Go library to talk HTTP over Unix domain sockets
Go
46
star
5

benchmark-ordered-map

Ordered map Go data structure benchmarks
Go
40
star
6

zbase32

Human-oriented encoding for binary data
Go
39
star
7

base58

Base58 encoding for Go
Go
38
star
8

jsonarray

Streaming decoder for JSON arrays
Go
37
star
9

bella

Bella renders text to graphics and prints it on a label maker using IPP/CUPS.
Go
37
star
10

birpc

Bi-directional RPC library for Go, including JSON-over-WebSocket
Go
31
star
11

topic

Go library for in-process single-topic pub-sub
Go
30
star
12

troops

A software deployment tool (THIS PROJECT IS IN DEEP HIBERNATION FOR NOW. MOVE ALONG.)
Python
29
star
13

yubage

`age-plugin-yubikey` implementation, encrypt things with a Yubikey/any PIV card
Go
25
star
14

securityblanket

DIY home security project using Honeywell 5800 series RF sensors
Go
13
star
15

sparkbar

Draw a sparkline in a terminal with UTF-8 block characters
Go
13
star
16

demand

Download, build, cache and run a Go app easily.
Go
12
star
17

adhoc-httpd

Quick & dirty HTTP static file server
Go
11
star
18

slug

Create slugs of text or URLs, for use in e.g. URL path segments
Go
10
star
19

jog

Structured logging library for Go
Go
10
star
20

humanize-bytes

Command-line utilities to convert "MiB" etc to raw numbers, and back
Go
10
star
21

msgpack-json

Command-line utilities to convert between msgpack and json
Go
7
star
22

ldaptor

LDAP server, client and utilities, using Twisted Python. Historical interest only, see link for ongoing community project.
Python
7
star
23

representative

Static slideshow generator for Go slides
JavaScript
6
star
24

quobar

X11 status bar
Go
6
star
25

oppositus

mirror CoreOS releases
Go
6
star
26

sinus

Command-line remote control for Sonos/UPnP audio devices
Go
6
star
27

darwini

Go web programming with strong types & strong opinions
Go
5
star
28

staged

Run a command with the Git staged files
Go
5
star
29

x11-clipboard

Interacting with the X11 clipboard/selection from Go
Go
5
star
30

spindown-idle-disks

Spin down idle SATA disks. Because hdparm -S 120 just won't work.
Go
5
star
31

compound

Go library for making order-preserving keys from structured data, with support for prefix iteration
Go
5
star
32

audibly

Audibly report command status
Go
5
star
33

listen-like-systemd

Command to emulate systemd socket activation fd passing
Go
4
star
34

toursst

TouRSSt fetches RSS feeds into Maildirs. Mostly of historical interest.
Python
4
star
35

downburst

Fast Ubuntu Cloud Image creation on libvirt
Python
3
star
36

cheesy2

Provide Amazon EC2-style user data to libvirt virtual machine -- Abandoned in favor of Downburst, https://github.com/ceph/downburst
Python
3
star
37

where

Find where a Go identifier is defined
Go
3
star
38

bugit

A prototype of bug tracking with Git
Python
3
star
39

mobiledoc-to-markdown

Convert Mobiledoc (Ghost blog) articles to Markdown
Go
3
star
40

cliutil

Go library to make subcommand-style command line interfaces easier to program
Go
3
star
41

twackup

Backs up your tweets, a flimsy excuse to write more Go code
Go
2
star
42

seed

Go library to easily seed PRNGs with some entropy
Go
2
star
43

varint

Variable integer encoding/decoding tools
Go
2
star
44

read-file-to-env

Read files into environment variables and execute command
Go
2
star
45

ntlmv2hash

Compute Windows NTLMv2 password hashes
Go
2
star
46

eunuchs

Missing manly parts of UNIX API for Python
C
2
star
47

oatmail

synchronizing Maildir mail with git
Python
2
star
48

json-point

Command-line tool to extract parts of JSON documents, with JSON Pointer syntax
Go
2
star
49

s3-url-sign

Sign a URL for use with S3
Python
2
star
50

scalemail

Scalable virtual mail domain system built on Postfix and LDAP. Mostly of historical interest.
Python
2
star
51

wait-for-pid

Wait for processes to exit
Rust
2
star
52

scram-password

Command-line utility for Postgres-compatible SCRAM-SHA-256 passwords
Go
2
star
53

bearproxy

A very simple HTTP reverse proxy that checks that requests contain a valid secret as a bearer token
Go
1
star
54

didyouseethis

Retweet anything with certain keywords
Go
1
star
55

maildir-fix

Fix maildirs after git has pruned empty dirs
Go
1
star
56

dia_for_sphinx

Dia directive plugin for Sphinx
Python
1
star
57

childrpc

Use Go's rpc package to talk to subprocesses
Go
1
star
58

sekrit

[DEPRECATED] manage multi-user GPG-protected secrets; see instead https://github.com/tv42/yubage
Python
1
star
59

phrase-encoder

Encode binary data as words
Go
1
star
60

old-go

Git mirror of the Go Mercurial repository, with my modifications
Go
1
star
61

fs

Common Pythonic Filesystem API. Historical interest only.
Python
1
star
62

choosy

experimental & minimal web-based user interface to select a file from a list and play with mpv
Rust
1
star
63

intrusive

Intrusive container data types for Go
Go
1
star
64

snakepit

HiveDB partitioned database schema Python client. Abandoned in favor of using Cassandra. Mostly of historical interest.
Python
1
star
65

dnscvsutil

Maintain DNS zone files under CVS control (ancient, historical interest mostly)
1
star
66

botosh

Start a Python shell with Boto connections open
Python
1
star
67

x11-media-keys

Adjust volume and screen brightness based on keypresses
Go
1
star
68

big

[DEPRECATED] Large file storage with Git; see instead https://github.com/bazil/plop
Python
1
star
69

melange-discovery

Draft blueprint for Openstack Melange instance address discovery component
1
star