Commit Graph

  • 4853024928 Nuke extraneous makefiles, no longer needed. Alex Bramley 2011-11-06 06:26:59 +0000
  • caa9429a74 Update README. Alex Bramley 2011-11-06 05:22:02 +0000
  • 2bc8238f8e Move state-related handlers to their own file for clarity. Alex Bramley 2011-11-06 05:11:05 +0000
  • 2389f03d45 Update example client. Alex Bramley 2011-11-06 05:08:28 +0000
  • 85097043cf Epic final commit for nick/chan/logging/testing refactor. Alex Bramley 2011-11-06 04:56:46 +0000
  • 69d52270b6 Convert state tracker to use gomock logging for tests. Alex Bramley 2011-11-05 12:22:04 +0000
  • d0f0175d7f Oops. Missed String() from interface. Alex Bramley 2011-11-05 09:30:32 +0000
  • aa12177399 My mock is clunky for external use, but works well for internal testing. Switch to gomock. Alex Bramley 2011-11-05 09:17:32 +0000
  • b1037b2603 Add String() method for stateTracker. Alex Bramley 2011-11-05 06:06:59 +0000
  • fdba74e8c0 Shave the yaks in state's tests. Alex Bramley 2011-11-05 06:06:40 +0000
  • 588a3168ac More logging yak-shaving: Alex Bramley 2011-11-05 05:56:45 +0000
  • cfffcf2a85 Add a method to wipe a state tracker clean. Alex Bramley 2011-11-05 02:25:25 +0000
  • 60cd5b975f Test Channel.ParseModes(). Alex Bramley 2011-11-03 04:15:12 +0000
  • 2a6f19dc83 Start of channel tests. Alex Bramley 2011-11-03 03:12:32 +0000
  • b88983ceaf Test Nick.ParseModes(). Alex Bramley 2011-11-03 03:01:50 +0000
  • 75112d67e2 More nick tests. Alex Bramley 2011-10-27 18:43:34 +0100
  • 1c39dbecbb Remove extraneous logging level setting. Alex Bramley 2011-10-27 18:43:08 +0100
  • 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 +0100
  • 97783df463 Make mock loggers log everything to avoid stupids. Alex Bramley 2011-10-27 18:24:08 +0100
  • 2f5d4d86a5 Really sort out indentation. Alex Bramley 2011-10-27 18:07:56 +0100
  • 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 +0100
  • 74ef93abde Fix behaviour of CheckWrittenAtLevel() slightly: Alex Bramley 2011-10-27 17:48:15 +0100
  • 47dd5b3430 We need to be able to get at ChanPrivs easily. Alex Bramley 2011-10-27 17:03:01 +0100
  • 2603e0984c Test nick <-> channel association. Alex Bramley 2011-10-27 16:55:33 +0100
  • 93508c79f1 Similar nick <-> channel dissociation tests in DelChannel(). Alex Bramley 2011-10-27 16:41:56 +0100
  • 8771f1db77 Test nick<->channel dissociation in DelNick(). Alex Bramley 2011-10-27 16:04:45 +0100
  • 6ded98b9e5 Moar testing and updates. Alex Bramley 2011-10-22 23:58:06 +0100
  • 1fbd0a8b17 Switch to using and propagating logger. Alex Bramley 2011-10-22 23:57:22 +0100
  • 88a664833e Oops. I was just being fail. Alex Bramley 2011-10-22 16:59:28 +0100
  • 63c7915933 Srsly, fffffuuuu. Alex Bramley 2011-10-22 16:45:53 +0100
  • eea12a554b Hmm, slice out of range error, wtf x3! Alex Bramley 2011-10-22 16:44:28 +0100
  • 1df07d2ff6 Hmm, slice out of range error, wtf x2. Alex Bramley 2011-10-22 16:42:24 +0100
  • ebc34cdce5 Hmm, slice out of range error, wtf. Alex Bramley 2011-10-22 16:40:47 +0100
  • 4ee7aac968 oops, this is not a Logger. Alex Bramley 2011-10-22 16:18:57 +0100
  • dee808a263 Move logger mocks to a non-test file so they can be used elsewhere. Alex Bramley 2011-10-22 16:15:46 +0100
  • 2467e5cc93 More tests for the logging package. Alex Bramley 2011-10-22 15:43:13 +0100
  • c769723596 Rewrite logging package for great justice. Alex Bramley 2011-10-22 12:06:18 +0100
  • 7be7e79c78 Oops, missed a bit. Alex Bramley 2011-10-20 00:23:54 +0100
  • 111a23d87c Epic refactor of the refactor. Alex Bramley 2011-10-20 00:10:33 +0100
  • 7f6e5fc7d9 Use NewNick and NewChannel in tests. Alex Bramley 2011-10-13 23:19:31 +0100
  • 2c333e0e9a Ditch initialise() functions and just make constructors better. Alex Bramley 2011-10-13 22:48:04 +0100
  • 6266eba245 Slight fixes to NewChannel and tests for st's Channel methods. Alex Bramley 2011-10-13 22:31:09 +0100
  • 9163b9af7a Slight fixes to ReNick and tests for the rest of st's Nick methods. Alex Bramley 2011-10-13 20:44:44 +0100
  • 4c6c503069 Beginning of state tracker unit tests. Alex Bramley 2011-10-12 23:06:46 +0100
  • b2ac2929d2 Break state tracker into multiple files. Alex Bramley 2011-10-12 22:59:52 +0100
  • a26a940e6d Comment changes and cosmetics for state pkg. Alex Bramley 2011-10-08 10:57:10 +0100
  • f128ce84b4 Start of breaking out state tracking into separate package. Alex Bramley 2011-10-08 10:42:15 +0100
  • a0020f4e62 Method to initialise tracker memory. Alex Bramley 2011-10-08 10:40:58 +0100
  • d072abbb76 Give nicks an awareness of me. Alex Bramley 2011-10-07 00:19:31 +0100
  • 7a17ee9eb5 State tracking refactor completer. Alex Bramley 2011-10-06 23:54:34 +0100
  • e36caa3a3d Merge branch 'logging' into nickchan-refactor Alex Bramley 2011-10-06 22:33:06 +0100
  • 47de788c4c Missed removal of conn.Debug. Alex Bramley 2011-10-06 21:37:41 +0100
  • a4ac0dd1b7 Update README, fix whitespace fail. Alex Bramley 2011-10-06 21:33:02 +0100
  • d119e6bca0 Update example client. Alex Bramley 2011-10-06 21:28:01 +0100
  • 3e1b2c0f81 Turns out gofmt isn't big on spaces sometimes. Alex Bramley 2011-09-29 22:58:04 +0100
  • de66051d07 Convert conn.Err into logging. Alex Bramley 2011-09-29 22:54:54 +0100
  • 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 +0100
  • 26a482d8ea Using two flagsets on os.Args causes confusion. Alex Bramley 2011-09-29 21:31:05 +0100
  • d07471b93a Simpleish level-based logging library and the start of some tests. Alex Bramley 2011-09-28 23:47:30 +0100
  • eb6ac4ce05 Tracking wip. Alex Bramley 2011-09-28 20:48:58 +0100
  • c400a2141a Run gofmt over code, it's been a while. Alex Bramley 2011-09-12 23:25:09 +0100
  • 18c20080e8 Test handler for 671 replies. Alex Bramley 2011-09-12 23:21:40 +0100
  • b0e0be0fe3 Check all nicks against current channel contents for 353 handler. Alex Bramley 2011-09-12 23:21:15 +0100
  • 6c1d345f0b Test handler for 353 replies. Alex Bramley 2011-09-12 23:14:08 +0100
  • 9d896f2693 Test for 352 RPL_WHOREPLY. Alex Bramley 2011-09-11 11:01:28 +0100
  • d4ae3b588d Test for 332 RPL_TOPIC. Alex Bramley 2011-09-09 23:27:45 +0100
  • 4008b84db6 Test handler for 324 RPL_CHANNELMODEIS. Alex Bramley 2011-09-09 23:24:08 +0100
  • 47ae014c1c Whitespace fix. Alex Bramley 2011-09-09 23:04:27 +0100
  • 8ae5fe3b75 Another minor indexing bug :-/ Alex Bramley 2011-09-09 23:04:12 +0100
  • ff855691cf Test the 311 RPL_WHOISUSER handler. Alex Bramley 2011-09-09 23:03:44 +0100
  • daadb2c96e Test the TOPIC handler. Alex Bramley 2011-09-09 23:02:33 +0100
  • d15d1074f5 Fix bug found by MODE handler test. Alex Bramley 2011-09-09 22:33:08 +0100
  • c5146e93f6 Add MODE handler test. These are starting to feel clunky. Alex Bramley 2011-09-09 22:32:55 +0100
  • df893eb6d0 QUIT handler test. Alex Bramley 2011-08-31 22:55:56 +0100
  • b306650af5 Tests for the KICK handler. Alex Bramley 2011-08-30 23:15:54 +0100
  • 788c69aaa8 Fix same logic bug in KICK handler. Alex Bramley 2011-08-30 23:08:10 +0100
  • d74fd18d3d Fixed logic bug, but it's a bit ugly :-/ Alex Bramley 2011-08-24 14:39:27 +0100
  • 4c0f62666d Test for h_PART -- exposed a logic bug :-/ Alex Bramley 2011-08-24 14:34:11 +0100
  • 52e74b3f1a Rewrite JOIN handler test to avoid re-testing all the state tracking logic repeatedly. Alex Bramley 2011-08-24 13:57:06 +0100
  • c5e13b8b12 Make NICK handler test a little more accurate. Alex Bramley 2011-08-24 13:56:15 +0100
  • cf8ab830f7 Move some basic assertions about initial state into setUp(). Alex Bramley 2011-08-24 13:55:18 +0100
  • 389f5247f5 Helpers for testing whether Conn errors are triggered. Alex Bramley 2011-08-24 13:53:28 +0100
  • 6815c19bb3 Start of JOIN test. Seems like the wrong approach. Alex Bramley 2011-08-24 12:46:21 +0100
  • b8c3f42252 Better line ending handling in MockNetConn. Alex Bramley 2011-08-24 12:45:32 +0100
  • 83da879ad3 Add tearDown() to all tests. Alex Bramley 2011-08-23 11:06:06 +0100
  • 8fc23d5c17 Test CTCP handler. Alex Bramley 2011-08-23 11:03:59 +0100
  • 7d9b8c3099 Add tests for explicit and implicit (via EOF) shutdown; fix bug ;-) Alex Bramley 2011-08-23 10:53:52 +0100
  • 770c5eb5ac Use ExpectNothing() to make sure handlers don't generate unexpected output. Alex Bramley 2011-08-23 10:52:16 +0100
  • 5ff77fc2f9 Add mock dispatcher factory that tests an event fired; use it in Test001(). Alex Bramley 2011-08-23 10:49:22 +0100
  • 59b18b038b MockNetConn: Add ExpectNothing() helper. Alex Bramley 2011-08-23 10:44:14 +0100
  • bd388db1cc MockNetConn: Use correct os.Errors in Read/Write. Alex Bramley 2011-08-23 10:43:48 +0100
  • 020730aca1 MockNetConn: Wrap all channel reads in selects; send EOF on Close(); kill goroutines correctly. Alex Bramley 2011-08-23 10:42:54 +0100
  • b04196327a Begin testing event handlers. Alex Bramley 2011-08-22 23:24:05 +0100
  • 4e7f272b3f Mock dispatcher for testing. Alex Bramley 2011-08-22 23:23:29 +0100
  • 0d7d875b9f Add Send method for mockNetConn, and make Read/Write return errors when closed. Alex Bramley 2011-08-22 23:22:46 +0100
  • 48ad9bfa4a Line parsing needs to handle CTCPREPLY too. Alex Bramley 2011-08-22 23:21:30 +0100
  • 5c347008fb Update README.md with external Connected var. Alex Bramley 2011-08-22 17:16:32 +0100
  • f3a2cf6fa6 Make connected externally accessible, per issues/8. Alex Bramley 2011-08-22 17:09:48 +0100
  • fb91caeccf Fix comment for Conn struct. Alex Bramley 2011-08-21 13:57:47 +0100
  • 820f0cb14b Test all client commands. Alex Bramley 2011-08-21 13:38:51 +0100