diff options
author | Tom Faulhaber <git_net@infolace.com> | 2009-11-28 10:53:36 -0800 |
---|---|---|
committer | Tom Faulhaber <git_net@infolace.com> | 2009-11-28 10:53:36 -0800 |
commit | 1bbb2dca9feb6e03de5cd8388868c05b7d30e3e4 (patch) | |
tree | 5641bdd43dafc00ed59487d8e8409d2e27cfe248 /api-index.json | |
parent | 7991f91d643d1d31c9347cffcf70453f31fa02d3 (diff) |
Updated documentation for commit a4a4a534d7dddc1d58fc93a216192bf4bb7b20ff
Diffstat (limited to 'api-index.json')
-rw-r--r-- | api-index.json | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/api-index.json b/api-index.json index 6aabb171..2efd32c4 100644 --- a/api-index.json +++ b/api-index.json @@ -351,7 +351,7 @@ "doc": "Functions for memory-mapping files, plus some functions that use a\nmmaped file for \"normal\" activies -- slurp, load-file, etc."}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/79c2e7205965d84ad5101ee283d9c61a59e4b649/src/clojure/contrib/mock.clj", + "http://github.com/richhickey/clojure-contrib/blob/a4a4a534d7dddc1d58fc93a216192bf4bb7b20ff/src/clojure/contrib/mock.clj", "wiki-url": "http://richhickey.github.com/clojure-contrib/mock-api.html", "name":"clojure.contrib.mock", @@ -620,7 +620,7 @@ "author":null, "doc":null}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/79c2e7205965d84ad5101ee283d9c61a59e4b649/src/clojure/contrib/mock/test_adapter.clj", + "http://github.com/richhickey/clojure-contrib/blob/a4a4a534d7dddc1d58fc93a216192bf4bb7b20ff/src/clojure/contrib/mock/test_adapter.clj", "wiki-url": "http://richhickey.github.com/clojure-contrib/mock.test-adapter-api.html", "name":"clojure.contrib.mock.test-adapter", @@ -3401,7 +3401,7 @@ "doc":"Reads the file named by f and returns it as a string.", "name":"slurp"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/79c2e7205965d84ad5101ee283d9c61a59e4b649/src/clojure/contrib/mock.clj#L209", + "http://github.com/richhickey/clojure-contrib/blob/a4a4a534d7dddc1d58fc93a216192bf4bb7b20ff/src/clojure/contrib/mock.clj#L216", "wiki-url": "http://richhickey.github.com/clojure-contrib//mock-api.html#mock/calls", "namespace":"clojure.contrib.mock", @@ -3410,7 +3410,7 @@ "Creates or associates to an existing expectation hash the :calls key with a\nfunction that will be called with the given arguments. The return value from\nthis function will be returned returned by the expected function. If both this\nand returns are specified, the return value of \"calls\" will have precedence.\nUsage:\n(calls some-fn expectation-hash?)", "name":"calls"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/79c2e7205965d84ad5101ee283d9c61a59e4b649/src/clojure/contrib/mock.clj#L258", + "http://github.com/richhickey/clojure-contrib/blob/a4a4a534d7dddc1d58fc93a216192bf4bb7b20ff/src/clojure/contrib/mock.clj#L265", "wiki-url": "http://richhickey.github.com/clojure-contrib//mock-api.html#mock/expect", "namespace":"clojure.contrib.mock", @@ -3419,7 +3419,7 @@ "Use expect to redirect calls to dependent functions that are made within the\ncode under test. Instead of calling the functions that would normally be used,\ntemporary stubs are used, which can verify function parameters and call counts.\nReturn values can also be specified as needed.\nUsage:\n(expect [dep-fn (has-args [arg-pred1] (times n (returns x)))]\n (function-under-test a b c))", "name":"expect"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/79c2e7205965d84ad5101ee283d9c61a59e4b649/src/clojure/contrib/mock.clj#L221", + "http://github.com/richhickey/clojure-contrib/blob/a4a4a534d7dddc1d58fc93a216192bf4bb7b20ff/src/clojure/contrib/mock.clj#L228", "wiki-url": "http://richhickey.github.com/clojure-contrib//mock-api.html#mock/has-args", "namespace":"clojure.contrib.mock", @@ -3429,7 +3429,7 @@ "Creates or associates to an existing expectation hash the :has-args key with\na value corresponding to a function that will either return true if its\nargument expectations are met or throw an exception with the details of the\nfirst failed argument it encounters.\nOnly specify as many predicates as you are interested in verifying. The rest\nof the values are safely ignored.\nUsage:\n(has-args [arg-pred-1 arg-pred-2 ... arg-pred-n] expectation-hash?)", "name":"has-args"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/79c2e7205965d84ad5101ee283d9c61a59e4b649/src/clojure/contrib/mock.clj#L98", + "http://github.com/richhickey/clojure-contrib/blob/a4a4a534d7dddc1d58fc93a216192bf4bb7b20ff/src/clojure/contrib/mock.clj#L105", "wiki-url": "http://richhickey.github.com/clojure-contrib//mock-api.html#mock/has-matching-signature?", "namespace":"clojure.contrib.mock", @@ -3438,7 +3438,7 @@ "Calls no-matching-function-signature if no match is found for the given\nfunction. If no argslist meta data is available for the function, it is\nnot called.", "name":"has-matching-signature?"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/79c2e7205965d84ad5101ee283d9c61a59e4b649/src/clojure/contrib/mock.clj#L109", + "http://github.com/richhickey/clojure-contrib/blob/a4a4a534d7dddc1d58fc93a216192bf4bb7b20ff/src/clojure/contrib/mock.clj#L116", "wiki-url": "http://richhickey.github.com/clojure-contrib//mock-api.html#mock/make-arg-checker", "namespace":"clojure.contrib.mock", @@ -3447,7 +3447,7 @@ "Creates the argument verifying function for a replaced dependency within\nthe expectation bound scope. These functions take the additional argument\nof the name of the replaced function, then the rest of their args. It is\ndesigned to be called from the mock function generated in the first argument\nof the mock info object created by make-mock.", "name":"make-arg-checker"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/79c2e7205965d84ad5101ee283d9c61a59e4b649/src/clojure/contrib/mock.clj#L124", + "http://github.com/richhickey/clojure-contrib/blob/a4a4a534d7dddc1d58fc93a216192bf4bb7b20ff/src/clojure/contrib/mock.clj#L131", "wiki-url": "http://richhickey.github.com/clojure-contrib//mock-api.html#mock/make-count-checker", "namespace":"clojure.contrib.mock", @@ -3456,7 +3456,7 @@ "creates the count checker that is invoked at the end of an expectation, after\nthe code under test has all been executed. The function returned takes the\nname of the associated dependency and the invocation count as arguments.", "name":"make-count-checker"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/79c2e7205965d84ad5101ee283d9c61a59e4b649/src/clojure/contrib/mock.clj#L143", + "http://github.com/richhickey/clojure-contrib/blob/a4a4a534d7dddc1d58fc93a216192bf4bb7b20ff/src/clojure/contrib/mock.clj#L150", "wiki-url": "http://richhickey.github.com/clojure-contrib//mock-api.html#mock/make-mock", "namespace":"clojure.contrib.mock", @@ -3465,7 +3465,7 @@ "creates a vector containing the following information for the named function:\n1. dependent function replacement - verifies signature, calls arg checker,\nincreases count, returns return value.\n2. an atom containing the invocation count\n3. the invocation count checker function\n4. a symbol of the name of the function being replaced.", "name":"make-mock"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/79c2e7205965d84ad5101ee283d9c61a59e4b649/src/clojure/contrib/mock.clj#L198", + "http://github.com/richhickey/clojure-contrib/blob/a4a4a534d7dddc1d58fc93a216192bf4bb7b20ff/src/clojure/contrib/mock.clj#L205", "wiki-url": "http://richhickey.github.com/clojure-contrib//mock-api.html#mock/returns", "namespace":"clojure.contrib.mock", @@ -3474,7 +3474,7 @@ "Creates or associates to an existing expectation hash the :returns key with\na value to be returned by the expectation after a successful invocation\nmatching its expected arguments (if applicable).\nUsage:\n(returns ret-value expectation-hash?)", "name":"returns"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/79c2e7205965d84ad5101ee283d9c61a59e4b649/src/clojure/contrib/mock.clj#L239", + "http://github.com/richhickey/clojure-contrib/blob/a4a4a534d7dddc1d58fc93a216192bf4bb7b20ff/src/clojure/contrib/mock.clj#L246", "wiki-url": "http://richhickey.github.com/clojure-contrib//mock-api.html#mock/times", "namespace":"clojure.contrib.mock", @@ -3483,7 +3483,7 @@ "Creates or associates to an existing expectation hash the :times key with a\nvalue corresponding to a predicate function which expects an integer value.\nThis function can either be specified as the first argument to times or can be\nthe result of calling times with an integer argument, in which case the\npredicate will default to being an exact match. This predicate is called at\nthe end of an expect expression to validate that an expected dependency\nfunction was called the expected number of times.\nUsage:\n(times n)\n(times #(> n %))\n(times n expectation-hash)", "name":"times"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/79c2e7205965d84ad5101ee283d9c61a59e4b649/src/clojure/contrib/mock.clj#L168", + "http://github.com/richhickey/clojure-contrib/blob/a4a4a534d7dddc1d58fc93a216192bf4bb7b20ff/src/clojure/contrib/mock.clj#L175", "wiki-url": "http://richhickey.github.com/clojure-contrib//mock-api.html#mock/validate-counts", "namespace":"clojure.contrib.mock", @@ -6806,7 +6806,7 @@ "doc":"Returns a swing text field", "name":"text-field"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/79c2e7205965d84ad5101ee283d9c61a59e4b649/src/clojure/contrib/mock.clj#L209", + "http://github.com/richhickey/clojure-contrib/blob/a4a4a534d7dddc1d58fc93a216192bf4bb7b20ff/src/clojure/contrib/mock.clj#L216", "wiki-url": "http://richhickey.github.com/clojure-contrib//mock-api.html#mock.test-adapter/calls", "namespace":"clojure.contrib.mock.test-adapter", @@ -6815,7 +6815,7 @@ "Creates or associates to an existing expectation hash the :calls key with a\nfunction that will be called with the given arguments. The return value from\nthis function will be returned returned by the expected function. If both this\nand returns are specified, the return value of \"calls\" will have precedence.\nUsage:\n(calls some-fn expectation-hash?)", "name":"calls"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/79c2e7205965d84ad5101ee283d9c61a59e4b649/src/clojure/contrib/mock.clj#L221", + "http://github.com/richhickey/clojure-contrib/blob/a4a4a534d7dddc1d58fc93a216192bf4bb7b20ff/src/clojure/contrib/mock.clj#L228", "wiki-url": "http://richhickey.github.com/clojure-contrib//mock-api.html#mock.test-adapter/has-args", "namespace":"clojure.contrib.mock.test-adapter", @@ -6825,7 +6825,7 @@ "Creates or associates to an existing expectation hash the :has-args key with\na value corresponding to a function that will either return true if its\nargument expectations are met or throw an exception with the details of the\nfirst failed argument it encounters.\nOnly specify as many predicates as you are interested in verifying. The rest\nof the values are safely ignored.\nUsage:\n(has-args [arg-pred-1 arg-pred-2 ... arg-pred-n] expectation-hash?)", "name":"has-args"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/79c2e7205965d84ad5101ee283d9c61a59e4b649/src/clojure/contrib/mock.clj#L98", + "http://github.com/richhickey/clojure-contrib/blob/a4a4a534d7dddc1d58fc93a216192bf4bb7b20ff/src/clojure/contrib/mock.clj#L105", "wiki-url": "http://richhickey.github.com/clojure-contrib//mock-api.html#mock.test-adapter/has-matching-signature?", "namespace":"clojure.contrib.mock.test-adapter", @@ -6834,7 +6834,7 @@ "Calls no-matching-function-signature if no match is found for the given\nfunction. If no argslist meta data is available for the function, it is\nnot called.", "name":"has-matching-signature?"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/79c2e7205965d84ad5101ee283d9c61a59e4b649/src/clojure/contrib/mock.clj#L109", + "http://github.com/richhickey/clojure-contrib/blob/a4a4a534d7dddc1d58fc93a216192bf4bb7b20ff/src/clojure/contrib/mock.clj#L116", "wiki-url": "http://richhickey.github.com/clojure-contrib//mock-api.html#mock.test-adapter/make-arg-checker", "namespace":"clojure.contrib.mock.test-adapter", @@ -6843,7 +6843,7 @@ "Creates the argument verifying function for a replaced dependency within\nthe expectation bound scope. These functions take the additional argument\nof the name of the replaced function, then the rest of their args. It is\ndesigned to be called from the mock function generated in the first argument\nof the mock info object created by make-mock.", "name":"make-arg-checker"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/79c2e7205965d84ad5101ee283d9c61a59e4b649/src/clojure/contrib/mock.clj#L124", + "http://github.com/richhickey/clojure-contrib/blob/a4a4a534d7dddc1d58fc93a216192bf4bb7b20ff/src/clojure/contrib/mock.clj#L131", "wiki-url": "http://richhickey.github.com/clojure-contrib//mock-api.html#mock.test-adapter/make-count-checker", "namespace":"clojure.contrib.mock.test-adapter", @@ -6852,7 +6852,7 @@ "creates the count checker that is invoked at the end of an expectation, after\nthe code under test has all been executed. The function returned takes the\nname of the associated dependency and the invocation count as arguments.", "name":"make-count-checker"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/79c2e7205965d84ad5101ee283d9c61a59e4b649/src/clojure/contrib/mock.clj#L143", + "http://github.com/richhickey/clojure-contrib/blob/a4a4a534d7dddc1d58fc93a216192bf4bb7b20ff/src/clojure/contrib/mock.clj#L150", "wiki-url": "http://richhickey.github.com/clojure-contrib//mock-api.html#mock.test-adapter/make-mock", "namespace":"clojure.contrib.mock.test-adapter", @@ -6861,7 +6861,7 @@ "creates a vector containing the following information for the named function:\n1. dependent function replacement - verifies signature, calls arg checker,\nincreases count, returns return value.\n2. an atom containing the invocation count\n3. the invocation count checker function\n4. a symbol of the name of the function being replaced.", "name":"make-mock"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/79c2e7205965d84ad5101ee283d9c61a59e4b649/src/clojure/contrib/mock/test_adapter.clj#L19", + "http://github.com/richhickey/clojure-contrib/blob/a4a4a534d7dddc1d58fc93a216192bf4bb7b20ff/src/clojure/contrib/mock/test_adapter.clj#L19", "wiki-url": "http://richhickey.github.com/clojure-contrib//mock-api.html#mock.test-adapter/report-problem", "namespace":"clojure.contrib.mock.test-adapter", @@ -6870,7 +6870,7 @@ "This function is designed to be used in a binding macro to override\nthe report-problem function in clojure.contrib.mock. Instead of printing\nthe error to the console, the error is logged via clojure.test.", "name":"report-problem"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/79c2e7205965d84ad5101ee283d9c61a59e4b649/src/clojure/contrib/mock.clj#L198", + "http://github.com/richhickey/clojure-contrib/blob/a4a4a534d7dddc1d58fc93a216192bf4bb7b20ff/src/clojure/contrib/mock.clj#L205", "wiki-url": "http://richhickey.github.com/clojure-contrib//mock-api.html#mock.test-adapter/returns", "namespace":"clojure.contrib.mock.test-adapter", @@ -6879,7 +6879,7 @@ "Creates or associates to an existing expectation hash the :returns key with\na value to be returned by the expectation after a successful invocation\nmatching its expected arguments (if applicable).\nUsage:\n(returns ret-value expectation-hash?)", "name":"returns"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/79c2e7205965d84ad5101ee283d9c61a59e4b649/src/clojure/contrib/mock.clj#L239", + "http://github.com/richhickey/clojure-contrib/blob/a4a4a534d7dddc1d58fc93a216192bf4bb7b20ff/src/clojure/contrib/mock.clj#L246", "wiki-url": "http://richhickey.github.com/clojure-contrib//mock-api.html#mock.test-adapter/times", "namespace":"clojure.contrib.mock.test-adapter", @@ -6888,7 +6888,7 @@ "Creates or associates to an existing expectation hash the :times key with a\nvalue corresponding to a predicate function which expects an integer value.\nThis function can either be specified as the first argument to times or can be\nthe result of calling times with an integer argument, in which case the\npredicate will default to being an exact match. This predicate is called at\nthe end of an expect expression to validate that an expected dependency\nfunction was called the expected number of times.\nUsage:\n(times n)\n(times #(> n %))\n(times n expectation-hash)", "name":"times"}, {"source-url": - "http://github.com/richhickey/clojure-contrib/blob/79c2e7205965d84ad5101ee283d9c61a59e4b649/src/clojure/contrib/mock.clj#L168", + "http://github.com/richhickey/clojure-contrib/blob/a4a4a534d7dddc1d58fc93a216192bf4bb7b20ff/src/clojure/contrib/mock.clj#L175", "wiki-url": "http://richhickey.github.com/clojure-contrib//mock-api.html#mock.test-adapter/validate-counts", "namespace":"clojure.contrib.mock.test-adapter", |