fsm: improve and convert to interface #178

Merged
vtolstov merged 2 commits from fsm into v3 2023-01-30 00:31:50 +03:00
vtolstov commented 2023-01-30 00:18:11 +03:00 (Migrated from github.com)
  • logger: fix Fields func for default logger
  • logger: remove wrappers support
  • logger: remove OmitLogger wrapper
  • fsm: convert to interface
  • fsm: add wrappers support

Signed-off-by: Vasiliy Tolstov v.tolstov@unistack.org

* logger: fix Fields func for default logger * logger: remove wrappers support * logger: remove OmitLogger wrapper * fsm: convert to interface * fsm: add wrappers support Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
github-actions[bot] (Migrated from github.com) reviewed 2023-01-30 00:18:24 +03:00
github-actions[bot] (Migrated from github.com) approved these changes 2023-01-30 00:30:08 +03:00
codecov[bot] commented 2023-01-30 00:30:59 +03:00 (Migrated from github.com)

Codecov Report

Merging #178 (cb743ce) into v3 (4debc39) will decrease coverage by 0.33%.
The diff coverage is 70.75%.

Impacted file tree graph

@@            Coverage Diff             @@
##               v3     #178      +/-   ##
==========================================
- Coverage   40.92%   40.60%   -0.33%     
==========================================
  Files          97       97              
  Lines        9250     9163      -87     
==========================================
- Hits         3786     3721      -65     
+ Misses       5126     5109      -17     
+ Partials      338      333       -5     
Impacted Files Coverage Δ
logger/options.go 55.55% <ø> (-4.45%) ⬇️
logger/default.go 56.49% <36.36%> (-16.07%) ⬇️
fsm/default.go 72.72% <72.72%> (ø)
fsm/options.go 83.33% <83.33%> (ø)
fsm/fsm.go

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4debc39...cb743ce. Read the comment docs.

# [Codecov](https://codecov.io/gh/unistack-org/micro/pull/178?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=unistack-org) Report > Merging [#178](https://codecov.io/gh/unistack-org/micro/pull/178?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=unistack-org) (cb743ce) into [v3](https://codecov.io/gh/unistack-org/micro/commit/4debc392d1aec91cd03802f311234e45d8d129d5?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=unistack-org) (4debc39) will **decrease** coverage by `0.33%`. > The diff coverage is `70.75%`. [![Impacted file tree graph](https://codecov.io/gh/unistack-org/micro/pull/178/graphs/tree.svg?width=650&height=150&src=pr&token=OZPO2LP7VS&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=unistack-org)](https://codecov.io/gh/unistack-org/micro/pull/178?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=unistack-org) ```diff @@ Coverage Diff @@ ## v3 #178 +/- ## ========================================== - Coverage 40.92% 40.60% -0.33% ========================================== Files 97 97 Lines 9250 9163 -87 ========================================== - Hits 3786 3721 -65 + Misses 5126 5109 -17 + Partials 338 333 -5 ``` | [Impacted Files](https://codecov.io/gh/unistack-org/micro/pull/178?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=unistack-org) | Coverage Δ | | |---|---|---| | [logger/options.go](https://codecov.io/gh/unistack-org/micro/pull/178?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=unistack-org#diff-bG9nZ2VyL29wdGlvbnMuZ28=) | `55.55% <ø> (-4.45%)` | :arrow_down: | | [logger/default.go](https://codecov.io/gh/unistack-org/micro/pull/178?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=unistack-org#diff-bG9nZ2VyL2RlZmF1bHQuZ28=) | `56.49% <36.36%> (-16.07%)` | :arrow_down: | | [fsm/default.go](https://codecov.io/gh/unistack-org/micro/pull/178?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=unistack-org#diff-ZnNtL2RlZmF1bHQuZ28=) | `72.72% <72.72%> (ø)` | | | [fsm/options.go](https://codecov.io/gh/unistack-org/micro/pull/178?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=unistack-org#diff-ZnNtL29wdGlvbnMuZ28=) | `83.33% <83.33%> (ø)` | | | [fsm/fsm.go](https://codecov.io/gh/unistack-org/micro/pull/178?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=unistack-org#diff-ZnNtL2ZzbS5nbw==) | | | ------ [Continue to review full report at Codecov](https://codecov.io/gh/unistack-org/micro/pull/178?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=unistack-org). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=unistack-org) > `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data` > Powered by [Codecov](https://codecov.io/gh/unistack-org/micro/pull/178?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=unistack-org). Last update [4debc39...cb743ce](https://codecov.io/gh/unistack-org/micro/pull/178?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=unistack-org). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=unistack-org).
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: unistack-org/micro#178
No description provided.