Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Design file tests #4

Open
chungphb opened this issue May 1, 2021 · 3 comments
Open

Design file tests #4

chungphb opened this issue May 1, 2021 · 3 comments
Labels
file Related to file test Related to test

Comments

@chungphb
Copy link
Owner

chungphb commented May 1, 2021

No description provided.

@chungphb
Copy link
Owner Author

chungphb commented May 1, 2021

Test open / close

One file

One instance

  1. Open then close

    Passed

  2. Open without closing

    Error: File not closed

  3. Close without opening

    Warn: File not opened

Multiple instances

  1. Multiple opens + One close

    Warn: File already opened

  2. One open + Multiple closes

    Warn: File already closed

  3. Multiple opens + Multiple closes

    Combination of all of the above, depends on the pattern

Multiple files

@chungphb chungphb changed the title [file_test] Test open / close file [file_test] Design May 2, 2021
@chungphb
Copy link
Owner Author

chungphb commented May 2, 2021

Test write

One string

  1. Write a regular string

    Passed

  2. Write an empty string

    Warn: Empty string

  3. Write before opening

    Warn: File already closed

  4. Write after closing

    Warn: File already closed

Multiple strings

  1. Write multiple strings consecutively

    Passed

  2. Write multiple strings concurrently

    Passed

  3. Write after reopening

    Passed

@chungphb chungphb changed the title [file_test] Design Design file tests May 3, 2021
@chungphb
Copy link
Owner Author

chungphb commented May 3, 2021

Test read

One page

One time

  1. Read a regular page

    Passed

  2. Read invalid pages

    Failed: Invalid access

  3. Read before opening

    Warn: File already closed

  4. Read after closing

    Warn: File already closed

Multiple times

  1. Read a page multiple times

    Passed

  2. Read after reopening

    Passed

Multiple pages

  1. Read multiple pages consecutively

    Passed

  2. Read multiple pages concurrently

    Passed

@chungphb chungphb added file Related to file test Related to test labels May 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
file Related to file test Related to test
Projects
None yet
Development

No branches or pull requests

1 participant