dgplug / dexer

This is a simple file indexing API server which gives a utility to search through files in a selected directory.
GNU General Public License v3.0
15 stars 10 forks source link

Test cases #4

Open farhaanbukhsh opened 6 years ago

farhaanbukhsh commented 6 years ago

There are no test cases yet each function has to have test cases.

hellozee commented 6 years ago

Right now the code is just a set of unorganized functions, test cases can be written after the code has been refactored properly

farhaanbukhsh commented 6 years ago

I guess after @hellozee made the changes we are up for a test sprint :)

sourabh1031 commented 5 years ago

@farhaanbukhsh i will work on this . can you provide me guide of how to write unit test cases in go

hellozee commented 5 years ago

@sourabh1031 I guess you can take a look at how the tests for the logger and the config manager is written. But I myself am not sure how to write the tests for the server and the indexer or the fact that they need any tests or not.

Testing seems kind of overkill at this stage of the program, though, what are you thoughts on it @farhaanbukhsh

farhaanbukhsh commented 5 years ago

what I think is we can have a basic frame for tests.

sourabh1031 commented 5 years ago

i will work on the issue. @farhaanbukhsh @hellozee can you suggest me resources to fix the issue