Commit eb7fb2f
authored
feat: add featureset (#105)
* feat: add featureset
* fix: clippy i32::MAX to run in 32bit machine
* fix: change mutex to rwlock
* feat: implement enable_for_test, disable_for_test
* fix: change comment style and rename to FeatureSet
* fix: change all featureset to take &self, allow running test in parallel
* fix: impl Default for FeatureSet
* fix: remove enable_for_test and disable_for_test
* fix: make new, default and from_config(default) having the same behaviour
* test: add test to verify golang default featureset should be matched1 parent 0a4b2f6 commit eb7fb2f
3 files changed
Lines changed: 471 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | 27 | | |
30 | 28 | | |
0 commit comments