Alex Bramley
|
6a54622df9
|
Make mockNetConn more likely to expose racy conditions.
Use buffered channels so that Close() returns without waiting.
Use an array of three channels rather than appending to a slice.
|
2011-11-11 10:48:58 +00:00 |
Alex Bramley
|
0d4e83ea7f
|
Fix length bug in mockNetChan.
Using the length of the provided buffer is dangerous after the first buffered
read from it, as it'll be the length of the buffer size...
|
2011-11-11 08:34:55 +00:00 |
Alex Bramley
|
38cd23891a
|
Streamline timers in mockNetConn slightly.
|
2011-11-11 08:00:18 +00:00 |
Alex Bramley
|
c400a2141a
|
Run gofmt over code, it's been a while.
|
2011-09-12 23:25:09 +01:00 |
Alex Bramley
|
b8c3f42252
|
Better line ending handling in MockNetConn.
|
2011-08-24 12:45:32 +01:00 |
Alex Bramley
|
59b18b038b
|
MockNetConn: Add ExpectNothing() helper.
|
2011-08-23 10:44:14 +01:00 |
Alex Bramley
|
bd388db1cc
|
MockNetConn: Use correct os.Errors in Read/Write.
|
2011-08-23 10:43:48 +01:00 |
Alex Bramley
|
020730aca1
|
MockNetConn: Wrap all channel reads in selects; send EOF on Close(); kill goroutines correctly.
|
2011-08-23 10:42:54 +01:00 |
Alex Bramley
|
0d7d875b9f
|
Add Send method for mockNetConn, and make Read/Write return errors when closed.
|
2011-08-22 23:22:46 +01:00 |
Alex Bramley
|
425557e8bd
|
Create a simple mock that implements net.Conn.
|
2011-08-21 13:38:12 +01:00 |