Commit Graph

7 Commits

Author SHA1 Message Date
Alexandra
1a5896c3be mcookie: fix and add tests 2025-04-08 20:12:48 +02:00
chalice19
7254ab6238 mcookie: generate cookie even if specified file doesn't exist (#285)
* mcookie: don't quit if specified file doesn't exist

* mcookie: add test

* minor fixes

* minor fix

* formatted

---------

Co-authored-by: Alexandra <aspasparagus@gmail.com>
2025-04-08 15:05:17 +02:00
Quang
f24471694c mcookie: read from stdin if file is - (#279)
* read from stdin

* Update mcookie.rs

* test

* fmt

* Update mcookie.rs

* Update mcookie.rs
2025-04-05 17:03:13 +02:00
Quang
0113e301e8 mcookie - fix providing /dev/random or /dev/urandom as file leads to infinite loop (#274)
* Update mcookie.rs

* edit doc

* fmt

* fix for unix and non-unix build

* add test case

* refactor

* fmt

* fix
2025-03-31 09:54:28 +02:00
Quang
36b3af044c mcookie: add support for human-readable sizes with -m option (#268)
* Create size.rs

* parse max size from human-readable strings

* tests for human-readable strings

* fmt

* fix failed tests and edge cases

* fix fmt

* cpr & license

* use usimpleerror

* fmt
2025-03-31 09:26:49 +02:00
Daniel Hofstetter
ee4408ea10 mcookie: fix "unused import" warning in test 2025-03-21 14:20:52 +01:00
alxndrv
f91b55d0ae Add tests for mcookie 2025-03-18 20:17:55 +02:00