Liking cljdoc? Tell your friends :D

clojure-lsp.test-helper.internal


->positionclj

(->position [row col])

->rangeclj

(->range start end)

assert-contains-submapscljmacro

(assert-contains-submaps maps result)

Asserts that maps are contained submaps of result in results.

Asserts that maps are contained submaps of result in results. 
raw docstring

assert-no-takeclj

(assert-no-take c timeout-ms)

assert-submapclj

(assert-submap expected actual)

assert-submapscljmacro

(assert-submaps maps result)

Asserts that maps are submaps of result in corresponding order and that the number of maps corresponds to the number of results. If MAPS is a set, don't check for order. Returns true if all assertions passed (useful for REPL).

taken from kondo and also adapted for sets.

Asserts that maps are submaps of result in corresponding order and
that the number of maps corresponds to the number of results. If
MAPS is a `set`, don't check for order. Returns true if all
assertions passed (useful for REPL).

 taken from kondo and also adapted for `set`s.
raw docstring

changes->codeclj

(changes->code changes db)
(changes->code changes uri db)

changes-by-uri->codeclj

(changes-by-uri->code changes-by-uri uri db)

codeclj

(code & strings)

componentsclj

(components)

components*clj


dbclj

(db)

db*clj

(db*)

default-uriclj


delete-fileclj

(delete-file uri)

edits-as-stringsclj

(edits-as-strings edits)

file-pathclj

(file-path path)

file-uriclj

(file-uri uri)

first-edit-as-root-stringclj

(first-edit-as-root-string [{:keys [loc]}])

lf->sysclj

(lf->sys text)

Returns TEXT, converting line endings to those of the underlying system's, if different.

Returns TEXT, converting `
` line endings to those of the underlying
  system's, if different.
raw docstring

load-codeclj

(load-code code)
(load-code code uri)
(load-code code uri components)

load-code-and-locsclj

(load-code-and-locs code)
(load-code-and-locs code uri)
(load-code-and-locs code uri components)

load-code-and-zlocclj

(load-code-and-zloc code)
(load-code-and-zloc code uri)

Load a code block into the kondo db at the provided uri and return a zloc parsed from the code. Useful for refactorings that consult the kondo db.

Load a `code` block into the kondo db at the provided `uri` and return a
zloc parsed from the code. Useful for refactorings that consult the kondo db.
raw docstring

load-code-into-zloc-and-positionclj

(load-code-into-zloc-and-position code)
(load-code-into-zloc-and-position code uri)

Load a code block into the kondo db at the provided uri and return a map containing the :zloc parsed from the code and the :position of the cursor. Useful for refactorings that consult the kondo db.

Load a `code` block into the kondo db at the provided `uri` and return a map
containing the `:zloc` parsed from the code and the `:position` of the cursor.
Useful for refactorings that consult the kondo db.
raw docstring

load-java-pathclj

(load-java-path uri)

load-projectclj

(load-project project-root-uri source-paths)

positions-from-textclj

(positions-from-text text)

Takes text with a pipe | as a placeholder for cursor positions and returns the text without the pipes alone with a vector of [row col] pairs representing the cursor positions (1-based)

Takes text with a pipe `|` as a placeholder for cursor positions and returns the text without
the pipes alone with a vector of [row col] pairs representing the cursor positions (1-based)
raw docstring

producerclj

(producer)

put-cursor-atclj

(put-cursor-at s row col end-col)

Position the cursor at the given row and column.

if end-col are different than col, understand as a selected range in editor.

positions are 1-based.

(position-cursor "[1 [2 [3]]]" 1 8 9) => "[1 [2 [|3|]]]"

Position the cursor at the given row and column.

if end-col are different than col,
understand as a selected range in editor.

positions are 1-based.

(position-cursor "[1 [2 [3]]]" 1 8 9) => "[1 [2 [|3|]]]"
raw docstring

reset-components!clj

(reset-components!)

reset-components-before-testclj

(reset-components-before-test)

string=clj

(string= string1 string2)

Like clojure.core/= applied on STRING1 and STRING2, but treats all line endings as equal.

Like `clojure.core/=` applied on STRING1 and STRING2, but treats
all line endings as equal.
raw docstring

submap?clj

(submap? smaller larger)

take-or-timeoutclj

(take-or-timeout c timeout-ms)

windows?clj


with-stringsclj

(with-strings results)

zloc-from-codeclj

(zloc-from-code code)

Parse a zloc from a code block. Useful for refactorings that do not consult the kondo db.

Parse a zloc from a `code` block. Useful for refactorings that do not consult
the kondo db.
raw docstring

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

× close