@rawcmd/core
Version:
Rawcmd core package.
136 lines (132 loc) • 7.02 kB
Plain Text
>>> @rawcmd/core
npx nyc npx hayspec test
tests/index.test.ts
exposed content ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑ ⚑
tests/errors/runtime.test.ts
is generic error ⚑ ⚑
tests/errors/validation.test.ts
is generic error ⚑ ⚑
tests/models/command/break-instance-method.test.ts
writes EOL character ⚑
tests/models/command/commands-instance-variable.test.ts
returns command subcommands ⚑ ⚑ ⚑ ⚑ ⚑ ⚑
tests/models/command/description-instance-variable.test.ts
returns command description ⚑
tests/models/command/get-ancestors-instance-method.test.ts
returns list of all parent commands ⚑
tests/models/command/get-context-instance-method.test.ts
returns arbitrary context data ⚑ ⚑
tests/models/command/get-parent-instance-method.test.ts
returns parent command instance ⚑
tests/models/command/get-typewriter-instance-method.test.ts
returns command line printer ⚑ ⚑
tests/models/command/name-instance-variable.test.ts
returns command name ⚑
tests/models/command/options-instance-variable.test.ts
returns command options ⚑ ⚑ ⚑ ⚑ ⚑ ⚑
tests/models/command/perform-instance-method.test.ts
executes resolver ⚑ ⚑ ⚑ ⚑
passes options to resolver ⚑ ⚑ ⚑
passes tail to resolver ⚑ ⚑ ⚑
supports option alias ⚑
supports option customer getter ⚑
supports option customer setter ⚑
supports option parser ⚑
supports option default value ⚑ ⚑
supports option empty value ⚑
supports option validation ⚑
resolver shares command content ⚑
tests/models/command/print-instance-method.test.ts
writes multiple mesages in single line with EOL at the end ⚑
converts EOLs to valid EOL ⚑
tests/models/command/resolver-instance-variable.test.ts
returns command resolver ⚑
tests/models/command/spin-instance-method.test.ts
writes messages in animated row ⚑ ⚑ ⚑
animation stops on write ⚑
tests/models/command/write-instance-method.test.ts
writes multiple mesages in single line ⚑
converts EOLs to valid EOL ⚑
tests/models/links/name-instance-variable.test.ts
returns command link name ⚑
tests/models/links/url-instance-variable.test.ts
returns command link url ⚑
tests/models/options/alias-instance-variable.test.ts
returns command option alias ⚑
tests/models/options/default-value-instance-variable.test.ts
returns command option default value ⚑
tests/models/options/description-instance-variable.test.ts
returns command option description ⚑
tests/models/options/empty-value-instance-variable.test.ts
returns command option empty value ⚑
tests/models/options/getter-instance-variable.test.ts
returns command option getter ⚑
tests/models/options/handlers-instance-variable.test.ts
returns command option handlers ⚑
tests/models/options/name-instance-variable.test.ts
returns command option name ⚑
tests/models/options/parser-instance-variable.test.ts
returns command option parser ⚑
tests/models/options/setter-instance-variable.test.ts
returns command option setter ⚑
tests/models/options/validators-instance-variable.test.ts
returns command option validators ⚑
tests/streamlets/console/clear-line-instance-method.test.ts
removes last row from buffer ⚑
tests/streamlets/console/height-instance-variable.test.ts
returns screen height ⚑
tests/streamlets/console/width-instance-variable.test.ts
returns screen width ⚑
tests/streamlets/console/write-instance-method.test.ts
writes chunks ⚑ 2444ms
converts EOLs to valid EOL ⚑ 2202ms
tests/streamlets/memory/clear-line-instance-method.test.ts
removes last output row ⚑
tests/streamlets/memory/drain-instance-method.test.ts
removes all buffered data ⚑
tests/streamlets/memory/height-instance-variable.test.ts
returns screen height ⚑
tests/streamlets/memory/width-instance-variable.test.ts
returns screen width ⚑
tests/streamlets/memory/write-instance-method.test.ts
writes chunks ⚑
converts EOLs to valid EOL ⚑
tests/typewriters/spinner/is-started-instance-method.test.ts
returns `true` when spinwriter is started ⚑ ⚑
tests/typewriters/spinner/start-instance-method.test.ts
starts animation ⚑ ⚑
tests/typewriters/spinner/stop-instance-method.test.ts
starts animation ⚑ ⚑
tests/typewriters/spinner/write-instance-method.test.ts
does nothing when stopped ⚑
writes messages in animated row ⚑ ⚑ ⚑
writes multiline message ⚑
supports custom characters ⚑
tests/typewriters/typewriter/break-instance-method.test.ts
writes EOL character ⚑
tests/typewriters/typewriter/write-instance-method.test.ts
writes chunks ⚑
converts EOLs to valid EOL ⚑
63 passing 1 skipped
--------------------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
--------------------|----------|----------|----------|----------|-------------------|
All files | 95.28 | 87.85 | 89.86 | 95.63 | |
src | 100 | 100 | 100 | 100 | |
index.ts | 100 | 100 | 100 | 100 | |
types.ts | 100 | 100 | 100 | 100 | |
src/errors | 100 | 83.33 | 100 | 100 | |
generic.ts | 100 | 100 | 100 | 100 | |
runtime.ts | 100 | 100 | 100 | 100 | |
validation.ts | 100 | 50 | 100 | 100 | 18 |
src/models | 95.54 | 93.75 | 91.43 | 96.3 | |
command-link.ts | 80 | 100 | 50 | 80 | 57 |
command-option.ts | 100 | 100 | 100 | 100 | |
command.ts | 95.74 | 91.07 | 93.55 | 96.67 | 168,169,300 |
src/streamlets | 95.45 | 44.44 | 90.91 | 95.45 | |
console.ts | 85.71 | 20 | 75 | 85.71 | 39 |
memory.ts | 100 | 75 | 100 | 100 | 55 |
src/writers | 90.48 | 80 | 83.33 | 90.24 | |
spinwriter.ts | 93.33 | 87.5 | 91.67 | 93.1 | 84,132 |
typewriter.ts | 83.33 | 50 | 66.67 | 83.33 | 49,59 |
--------------------|----------|----------|----------|----------|-------------------|