package
0.6.2
Repository: https://github.com/dnote/cli.git
Documentation: pkg.go.dev

# Functions

AssertDeepEqual fails a test if the actual does not deeply equal the expected.
AssertEqual errors a test if the actual does not match the expected.
AssertEqualf fails a test if the actual does not match the expected.
AssertNotEqual fails a test if the actual matches the expected.
CopyFixture writes the content of the given fixture to the filename inside the dnote dir.
InitEnv sets up a test env and returns a new dnote context.
IsEqualJSON deeply compares two JSON byte slices.
Login simulates a logged in user by inserting credentials in the local database.
MustExec executes the given SQL query and fails a test if an error occurs.
MustMarshalJSON marshalls the given interface into JSON.
MustScan scans the given row and fails a test in case of any errors.
MustUnmarshalJSON marshalls the given interface into JSON.
NewDnoteCmd returns a new Dnote command and a pointer to stderr.
ReadFile reads the content of the file with the given name in dnote dir.
ReadFileAbs reads the content of the file with the given file path by resolving it as an absolute path.
ReadJSON reads JSON fixture to the struct at the destination address.
RunDnoteCmd runs a dnote command.
Setup1 sets up a dnote env #1 dnote4.json.
Setup2 sets up a dnote env #2 dnote3.json.
Setup3 sets up a dnote env #1 dnote1.json.
Setup4 sets up a dnote env #1 dnote2.json.
TeardownEnv cleans up the test env represented by the given context.
UserConfirm simulates confirmation from the user by writing to stdin.
WaitDnoteCmd runs a dnote command and waits until the command is exited.
WriteFile writes a file with the given content and filename inside the dnote dir.