Commit Graph

19 Commits

Author SHA1 Message Date
John Eikenberry 81c5ef6a75 rework fileinfo.Sys() output test for windows
split out the unix specific test code
2017-03-01 19:51:32 -08:00
John Eikenberry a4eb07c029 NewRequest() now takes method as first param 2017-02-18 18:20:37 -08:00
John Eikenberry df02b6e10d make NewRequest public 2017-02-18 18:20:37 -08:00
John Eikenberry 352ba90280 use proper newRequest in test 2017-02-18 18:20:37 -08:00
John Eikenberry 016dabfa49 golint and go vet fixes 2017-02-18 18:20:37 -08:00
John Eikenberry ce4586e8a5 convert request to be pass by value
Encapsulate stateful data into sub-structures with pointer references
from the Request structure. This allows me to pass by value in most
cases to keep non-stateful (write once) data data race free and tightly
controlling access to stateful data to ease locking.
2017-02-18 18:20:37 -08:00
John Eikenberry 887fd76631 remove old code 2017-02-18 18:20:37 -08:00
John Eikenberry 4f479d7876 tests use unix domain sockets instead of io.Pipe
Needed to be able to test out of order/synchronization issues which
io.Pipe wouldn't allow. So changed server tests to use unix sockets.
2017-02-18 18:20:37 -08:00
John Eikenberry f4432147d1 fix issue with leaking requests in handle cache 2017-02-18 18:20:37 -08:00
John Eikenberry b6f2e2d29e fix testing error
Mistakenly treated Readdir return value as list (ordered) instead of map
(unordered).
2017-02-18 18:20:37 -08:00
John Eikenberry 23acc34b25 change back to using int as handle key
Was using a filename as a placeholder for something that would allow for
stateless servers but decided the amount of work wasn't worth it at this
point. So I went back to the auto-inc number as it doesn't have the size
issues (max handle length is 256).
2017-02-18 18:20:37 -08:00
John Eikenberry 9962211713 linter fixes 2017-02-18 18:20:37 -08:00
John Eikenberry 56a1ff0d31 more tests 2017-02-18 18:20:37 -08:00
John Eikenberry e9fbfdcf4d 'integration' tests using in-mem request example backend 2017-02-18 18:20:37 -08:00
John Eikenberry f2d2606fc7 Add integration tests using example backend 2017-02-18 18:20:37 -08:00
John Eikenberry a15e6f57e3 updated tests 2017-02-18 18:20:37 -08:00
John Eikenberry e74311f79c variable name fix 2017-02-18 18:20:36 -08:00
John Eikenberry 37052567c8 name fixes 2017-02-18 18:20:36 -08:00
John Eikenberry 06bf237860 reworked in branch and liked it 2017-02-18 18:20:36 -08:00