1
0
Fork 0
mirror of https://github.com/fluffle/goirc synced 2025-06-06 14:53:19 +00:00

Commit graph

  • 049942ff2f Hmm, using a fixed-length filename doesn't work when you're allowing other people to use your mocks. Alex Bramley 2011-10-27 18:37:55 +01:00
  • 97783df463 Make mock loggers log everything to avoid stupids. Alex Bramley 2011-10-27 18:24:08 +01:00
  • 2f5d4d86a5 Really sort out indentation. Alex Bramley 2011-10-27 18:07:56 +01:00
  • 748db6b5d2 Test for dissociation, also ensure both nick and channel passed to {A,Di}ssociate are currently tracked. Alex Bramley 2011-10-27 17:54:23 +01:00
  • 74ef93abde Fix behaviour of CheckWrittenAtLevel() slightly: Alex Bramley 2011-10-27 17:48:15 +01:00
  • 47dd5b3430 We need to be able to get at ChanPrivs easily. Alex Bramley 2011-10-27 17:03:01 +01:00
  • 2603e0984c Test nick <-> channel association. Alex Bramley 2011-10-27 16:55:33 +01:00
  • 93508c79f1 Similar nick <-> channel dissociation tests in DelChannel(). Alex Bramley 2011-10-27 16:41:56 +01:00
  • 8771f1db77 Test nick<->channel dissociation in DelNick(). Alex Bramley 2011-10-27 16:04:45 +01:00
  • 6ded98b9e5 Moar testing and updates. Alex Bramley 2011-10-22 23:58:06 +01:00
  • 1fbd0a8b17 Switch to using and propagating logger. Alex Bramley 2011-10-22 23:57:22 +01:00
  • 88a664833e Oops. I was just being fail. Alex Bramley 2011-10-22 16:59:28 +01:00
  • 63c7915933 Srsly, fffffuuuu. Alex Bramley 2011-10-22 16:45:53 +01:00
  • eea12a554b Hmm, slice out of range error, wtf x3! Alex Bramley 2011-10-22 16:44:28 +01:00
  • 1df07d2ff6 Hmm, slice out of range error, wtf x2. Alex Bramley 2011-10-22 16:42:24 +01:00
  • ebc34cdce5 Hmm, slice out of range error, wtf. Alex Bramley 2011-10-22 16:40:47 +01:00
  • 4ee7aac968 oops, this is not a Logger. Alex Bramley 2011-10-22 16:18:57 +01:00
  • dee808a263 Move logger mocks to a non-test file so they can be used elsewhere. Alex Bramley 2011-10-22 16:15:46 +01:00
  • 2467e5cc93 More tests for the logging package. Alex Bramley 2011-10-22 15:43:13 +01:00
  • c769723596 Rewrite logging package for great justice. Alex Bramley 2011-10-22 12:06:18 +01:00
  • 7be7e79c78 Oops, missed a bit. Alex Bramley 2011-10-20 00:23:54 +01:00
  • 111a23d87c Epic refactor of the refactor. Alex Bramley 2011-10-20 00:10:33 +01:00
  • 7f6e5fc7d9 Use NewNick and NewChannel in tests. Alex Bramley 2011-10-13 23:19:31 +01:00
  • 2c333e0e9a Ditch initialise() functions and just make constructors better. Alex Bramley 2011-10-13 22:48:04 +01:00
  • 6266eba245 Slight fixes to NewChannel and tests for st's Channel methods. Alex Bramley 2011-10-13 22:31:09 +01:00
  • 9163b9af7a Slight fixes to ReNick and tests for the rest of st's Nick methods. Alex Bramley 2011-10-13 20:44:44 +01:00
  • 4c6c503069 Beginning of state tracker unit tests. Alex Bramley 2011-10-12 23:06:46 +01:00
  • b2ac2929d2 Break state tracker into multiple files. Alex Bramley 2011-10-12 22:59:52 +01:00
  • a26a940e6d Comment changes and cosmetics for state pkg. Alex Bramley 2011-10-08 10:57:10 +01:00
  • f128ce84b4 Start of breaking out state tracking into separate package. Alex Bramley 2011-10-08 10:42:15 +01:00
  • a0020f4e62 Method to initialise tracker memory. Alex Bramley 2011-10-08 10:40:58 +01:00
  • d072abbb76 Give nicks an awareness of me. Alex Bramley 2011-10-07 00:19:31 +01:00
  • 7a17ee9eb5 State tracking refactor completer. Alex Bramley 2011-10-06 23:54:34 +01:00
  • e36caa3a3d Merge branch 'logging' into nickchan-refactor Alex Bramley 2011-10-06 22:33:06 +01:00
  • 47de788c4c Missed removal of conn.Debug. Alex Bramley 2011-10-06 21:37:41 +01:00
  • a4ac0dd1b7 Update README, fix whitespace fail. Alex Bramley 2011-10-06 21:33:02 +01:00
  • d119e6bca0 Update example client. Alex Bramley 2011-10-06 21:28:01 +01:00
  • 3e1b2c0f81 Turns out gofmt isn't big on spaces sometimes. Alex Bramley 2011-09-29 22:58:04 +01:00
  • de66051d07 Convert conn.Err into logging. Alex Bramley 2011-09-29 22:54:54 +01:00
  • 9773b47969 Maintain constant call depth in logging to ensure correct line numbers. More tests needed, too lazy. Alex Bramley 2011-09-29 22:45:26 +01:00
  • 26a482d8ea Using two flagsets on os.Args causes confusion. Alex Bramley 2011-09-29 21:31:05 +01:00
  • d07471b93a Simpleish level-based logging library and the start of some tests. Alex Bramley 2011-09-28 23:47:30 +01:00
  • eb6ac4ce05 Tracking wip. Alex Bramley 2011-09-28 20:48:58 +01:00
  • c400a2141a Run gofmt over code, it's been a while. Alex Bramley 2011-09-12 23:25:09 +01:00
  • 18c20080e8 Test handler for 671 replies. Alex Bramley 2011-09-12 23:21:40 +01:00
  • b0e0be0fe3 Check all nicks against current channel contents for 353 handler. Alex Bramley 2011-09-12 23:21:15 +01:00
  • 6c1d345f0b Test handler for 353 replies. Alex Bramley 2011-09-12 23:14:08 +01:00
  • 9d896f2693 Test for 352 RPL_WHOREPLY. Alex Bramley 2011-09-11 11:01:28 +01:00
  • d4ae3b588d Test for 332 RPL_TOPIC. Alex Bramley 2011-09-09 23:27:45 +01:00
  • 4008b84db6 Test handler for 324 RPL_CHANNELMODEIS. Alex Bramley 2011-09-09 23:24:08 +01:00
  • 47ae014c1c Whitespace fix. Alex Bramley 2011-09-09 23:04:27 +01:00
  • 8ae5fe3b75 Another minor indexing bug :-/ Alex Bramley 2011-09-09 23:04:12 +01:00
  • ff855691cf Test the 311 RPL_WHOISUSER handler. Alex Bramley 2011-09-09 23:03:44 +01:00
  • daadb2c96e Test the TOPIC handler. Alex Bramley 2011-09-09 23:02:33 +01:00
  • d15d1074f5 Fix bug found by MODE handler test. Alex Bramley 2011-09-09 22:33:08 +01:00
  • c5146e93f6 Add MODE handler test. These are starting to feel clunky. Alex Bramley 2011-09-09 22:32:55 +01:00
  • df893eb6d0 QUIT handler test. Alex Bramley 2011-08-31 22:55:56 +01:00
  • b306650af5 Tests for the KICK handler. Alex Bramley 2011-08-30 23:15:54 +01:00
  • 788c69aaa8 Fix same logic bug in KICK handler. Alex Bramley 2011-08-30 23:08:10 +01:00
  • d74fd18d3d Fixed logic bug, but it's a bit ugly :-/ Alex Bramley 2011-08-24 14:39:27 +01:00
  • 4c0f62666d Test for h_PART -- exposed a logic bug :-/ Alex Bramley 2011-08-24 14:34:11 +01:00
  • 52e74b3f1a Rewrite JOIN handler test to avoid re-testing all the state tracking logic repeatedly. Alex Bramley 2011-08-24 13:57:06 +01:00
  • c5e13b8b12 Make NICK handler test a little more accurate. Alex Bramley 2011-08-24 13:56:15 +01:00
  • cf8ab830f7 Move some basic assertions about initial state into setUp(). Alex Bramley 2011-08-24 13:55:18 +01:00
  • 389f5247f5 Helpers for testing whether Conn errors are triggered. Alex Bramley 2011-08-24 13:53:28 +01:00
  • 6815c19bb3 Start of JOIN test. Seems like the wrong approach. Alex Bramley 2011-08-24 12:46:21 +01:00
  • b8c3f42252 Better line ending handling in MockNetConn. Alex Bramley 2011-08-24 12:45:32 +01:00
  • 83da879ad3 Add tearDown() to all tests. Alex Bramley 2011-08-23 11:06:06 +01:00
  • 8fc23d5c17 Test CTCP handler. Alex Bramley 2011-08-23 11:03:59 +01:00
  • 7d9b8c3099 Add tests for explicit and implicit (via EOF) shutdown; fix bug ;-) Alex Bramley 2011-08-23 10:53:52 +01:00
  • 770c5eb5ac Use ExpectNothing() to make sure handlers don't generate unexpected output. Alex Bramley 2011-08-23 10:52:16 +01:00
  • 5ff77fc2f9 Add mock dispatcher factory that tests an event fired; use it in Test001(). Alex Bramley 2011-08-23 10:49:22 +01:00
  • 59b18b038b MockNetConn: Add ExpectNothing() helper. Alex Bramley 2011-08-23 10:44:14 +01:00
  • bd388db1cc MockNetConn: Use correct os.Errors in Read/Write. Alex Bramley 2011-08-23 10:43:48 +01:00
  • 020730aca1 MockNetConn: Wrap all channel reads in selects; send EOF on Close(); kill goroutines correctly. Alex Bramley 2011-08-23 10:42:54 +01:00
  • b04196327a Begin testing event handlers. Alex Bramley 2011-08-22 23:24:05 +01:00
  • 4e7f272b3f Mock dispatcher for testing. Alex Bramley 2011-08-22 23:23:29 +01:00
  • 0d7d875b9f Add Send method for mockNetConn, and make Read/Write return errors when closed. Alex Bramley 2011-08-22 23:22:46 +01:00
  • 48ad9bfa4a Line parsing needs to handle CTCPREPLY too. Alex Bramley 2011-08-22 23:21:30 +01:00
  • 5c347008fb Update README.md with external Connected var. Alex Bramley 2011-08-22 17:16:32 +01:00
  • f3a2cf6fa6 Make connected externally accessible, per issues/8. Alex Bramley 2011-08-22 17:09:48 +01:00
  • fb91caeccf Fix comment for Conn struct. Alex Bramley 2011-08-21 13:57:47 +01:00
  • 820f0cb14b Test all client commands. Alex Bramley 2011-08-21 13:38:51 +01:00
  • 425557e8bd Create a simple mock that implements net.Conn. Alex Bramley 2011-08-21 13:38:12 +01:00
  • 045679dd42 Split Connect() into two pieces for testing purposes. Alex Bramley 2011-08-21 13:23:42 +01:00
  • a95da1cb2c Enforce upper-case CTCP commands. Alex Bramley 2011-08-21 13:22:26 +01:00
  • b32e8d050f Gofix for r59. Alex Bramley 2011-08-03 08:04:01 +01:00
  • cd53356ca6 Merge branch 'master' into release Alex Bramley 2011-08-03 08:03:20 +01:00
  • 1a4ce96e00 Gofix for r59. Alex Bramley 2011-08-03 08:03:08 +01:00
  • 634377c04a Merge branch 'master' into release Alex Bramley 2011-08-03 07:42:28 +01:00
  • 5cdd25810e update client for release.r59 raylu 2011-08-01 17:33:48 -07:00
  • 2efe298c75 Make IRCHandler the function type, make NewHandler the factory. Alex Bramley 2011-07-30 19:41:50 +01:00
  • 43a2bf08f1 Make IRCHandler the function type, make NewHandler the factory. Alex Bramley 2011-07-30 19:41:50 +01:00
  • 1d82af0080 Impolite to break the 'IRC event provides Conn, Line' contract. Alex Bramley 2011-07-30 19:34:55 +01:00
  • 9c94b0b3e0 Impolite to break the 'IRC event provides Conn, Line' contract. Alex Bramley 2011-07-30 19:34:55 +01:00
  • bb703cc945 Fix SerialDispatcher test. Alex Bramley 2011-07-29 23:11:05 +01:00
  • 1849d886d4 Revert "Merge branch 'master' into release" Alex Bramley 2011-07-29 23:14:21 +01:00
  • 2528d13314 Merge branch 'master' into release Alex Bramley 2011-07-29 23:11:14 +01:00
  • 4994263773 Fix SerialDispatcher test. Alex Bramley 2011-07-29 23:11:05 +01:00
  • 2f31ca5dcf Oh, god damnit. Should at least *try* to build things to make sure they work. Alex Bramley 2011-07-28 18:01:46 +01:00