Liking cljdoc? Tell your friends :D

clj-github-mock.core


httpkit-fake-handlerclj

(httpkit-fake-handler opts)

Creates a ring-handler that is compatible with http-kit-fake. Receives the same options as `ring-handler.

Creates a `ring-handler` that is compatible with `http-kit-fake`. Receives the same
options as `ring-handler.
sourceraw docstring

ring-handlerclj

(ring-handler {:keys [initial-state] :as _opts})

Creates a ring like handler that emulates the github api. Receives a map of options that configure the handler.

Options:

  • :initial-state: a map containing information about organizations and repositories that will form the initial state of the emulator.

Example:

{:orgs [{:name "nubank" :repos [{:name "some-repo" :default_branch "master"}]}]}

default_branch is optional and will default to "main".

Creates a ring like handler that emulates the github api.
Receives a map of options that configure the handler.

Options:
- `:initial-state`: a map containing information about organizations
and repositories that will form the initial state of the emulator.

Example:
```
{:orgs [{:name "nubank" :repos [{:name "some-repo" :default_branch "master"}]}]}
```

`default_branch` is optional and will default to "main".
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close