🔒 A "Automated Password Generator"-clone written in Go
Find a file
Winni Neessen 704269d0b8
#53 Reorder modes and add new test case for mode flags
This commit primarily reorders the modes in the "mode_test.go" file for consistency. The order is now; ModeHumanReadable, ModeLowerCase, ModeNumber, ModeSpecial, ModeUpperCase. This now follows a logical order instead of the previous semi arbitrary one.

The commit also involves the addition of a new test case 'TestModesFromFlags' in the "mode_test.go" file. This test case aims at increasing the code coverage and ensuring modes obtained from the flags are correct.

Lastly, the 'ModesFromFlags' function in the "mode.go" has been slightly refactored for improved readability. This does not change the functionality and thus won't affect the rest of the codebase.
2023-08-04 18:38:32 +02:00
.github Update docker-publish.yml 2022-05-12 10:04:48 +02:00
.idea v2: Complete rework of the library and the client 2023-04-18 11:49:44 +02:00
cmd/apg #53 Refactor mode handling and bitmask functions 2023-08-04 17:14:24 +02:00
.gitignore Refactor generator and add config options 2023-08-04 16:02:58 +02:00
.golangci.toml v2: Complete rework of the library and the client 2023-04-18 11:49:44 +02:00
algo.go Refactor generator and add config options 2023-08-04 16:02:58 +02:00
apg.go Refactor generator and add config options 2023-08-04 16:02:58 +02:00
config.go #53 Refactor mode handling and bitmask functions 2023-08-04 17:14:24 +02:00
config_test.go Refactor generator and add config options 2023-08-04 16:02:58 +02:00
go.mod v2: Complete rework of the library and the client 2023-04-18 11:49:44 +02:00
mode.go #53 Reorder modes and add new test case for mode flags 2023-08-04 18:38:32 +02:00
mode_test.go #53 Refactor mode handling and bitmask functions 2023-08-04 17:14:24 +02:00
random.go Refactor generator and add config options 2023-08-04 16:02:58 +02:00
random_test.go Refactor generator and add config options 2023-08-04 16:02:58 +02:00
sonar-project.properties Integrate with SonarQube 2022-04-12 20:00:16 +02:00