Add ABCL disassembler post.
[blog.git] / cl-mock.post
1 ;;;;;
2 title: A mocking library for Common Lisp
3 tags: lisp
4 date: 2015-01-06 14:52:47+01:00
5 format: md
6 ;;;;;
7
8 After some time thinking about and rewriting the library in a subtly
9 different approaches, [`CL-MOCK`](https://github.com/Ferada/cl-mock) now
10 looks good to me as a version one.
11
12 I've removed all mentions of generic functions for now, as first of all
13 I'm unsure if functionality to dynamically rebind methods is even
14 necessary, and second, because doing that is complicated by the details
15 of that protocol.  Which means that specifying which method to override
16 is a bit hairy and I really want a good syntax before I let that stuff
17 loose.  So it'll have to wait until I figure out a good way to do that.
18 Since it should be easily added to the existing frontend, it will very
19 probably be done with some overloading of existing functions / macros
20 (e.g. with a `:method` specifier or so).
21
22 I'm hoping to test all of this and possibly investigate the generic
23 function issue on some other library.  At the moment my single more
24 complex example is a replacement for the
25 [`DRAKMA`](http://www.weitz.de/drakma/) `HTTP-REQUEST` call, which
26 worked surprisingly well and might even make it into a new test suite.
27 The benefit is obviously the improved reliability of not having to have
28 a running network connection for testing libraries against a (HTTP)
29 server.