Home Manual Reference Source Test

Test

Description Identifier Count

appears to work

-

builds with only name

-

builds with name and rp

-

builds with name, rp, and db

-

builds with name and db

-

throws when a name is omitted

-

creates basic queries

-

inserts data types correctly

-

throws when using a flagged regex

-

throws when using un-stringifyable object

-
unit/builder.test.js -

does not escape raw values

-

escapes complex values (issue #242)

-

converts a nanoseconds timestamp to a nano date

-
unit/grammar.test.js -

formats nanosecond dates

-

formats millisecond dates

-

parses ISO dates correctly

-

parses numeric ns timestamps

-

parses numeric u timestamps

-

parses numeric ms timestamps

-

parses numeric s timestamps

-

parses numeric m timestamps

-

parses numeric h timestamps

-

casts dates into timestamps

-

casts nanodates into timestamps

-

accepts strings, numbers liternally

-

throws on non-numeric strings

-

uses default options

-

parses dsns

-

parses single configs

-

parses cluster configs

-

parses parses schema

-

.createDatabase()

-

.dropDatabase()

-

.getDatabaseNames()

-

.getMeasurements()

-

.getSeries() from all

-

.getSeries() from single

-

.dropMeasurement()

-

.getUsers()

-

.grantAdminPrivilege()

-

.revokeAdminPrivilege()

-

.dropUser()

-

drops retention policies

-

shows retention policies

-

drops with only from clause by string

-

drops with only from clause by builder

-

drops with only where clause by string

-

drops with only where clause by builder

-

drops with both

-

works with admin specified == true

-

works with admin specified == false

-

works with admin unspecified

-

queries correctly

-

throws if DB unspecified

-

fills in default DB

-

queries correctly

-

throws if DB unspecified

-

fills in default DB

-

queries correctly

-

throws if DB unspecified

-

fills in default DB

-

queries correctly

-

throws if DB unspecified

-

fills in default DB

-

queries correctly

-

throws if DB unspecified

-

fills in default DB

-

writes with all options specified without a schema

-

writes using default options without a schema

-

uses a schema to coerce

-

throws on schema violations

-

handles lack of tags

-

handles lack of fields

-

handles multiple tags

-

writes with the .writeMeasurement method

-

accepts nanoseconds (as ms)

-

accepts timestamp overriding

-

runs raw queries

-

parses query output

-

selects from multiple

-

passes in options

-

rewrites nanosecond precisions

-

creates non-default policies

-

creates default policies

-

creates non-default policies

-

creates default policies

-

attempts to make an https request

-

passes through request options

-

times out requests

-

retries on a request error

-

fails if too many errors happen

-

calls back immediately on un-retryable error

-

pings servers

-

times out in pings

-

makes a text request

-

includes request query strings and bodies

-

discards responses

-

parses JSON responses

-

errors if JSON parsing fails

-

should error if there are no available hosts

-

should reenable hosts after the backoff expires

-

should back off if failures continue

-

should reset backoff after success

-

parses a empty result

-

parses a simple table of results

-

parses a results with second-precision

-

parses alternate epochs

-

parses grouped results

-

parses empty series

-

parses empty values

-

throws error on an errorful series

-

apparently works

-

coerces data correctly

-

accepts partial data

-

coerces numeric string data

-

strips null and undefined values

-

throws if wrong data type provided (bool)

-

throws if wrong data type provided (float)

-

throws if wrong data type provided (int)

-

allows valid tags

-

throws if invalid tags are provided

-

throws if invalid fields are provided

-