Skip to content

fix(taskflow): set taskflow name when initialize a new object#77

Merged
noneback merged 2 commits intononeback:mainfrom
LinPr:fix-taskflow-name
Apr 7, 2025
Merged

fix(taskflow): set taskflow name when initialize a new object#77
noneback merged 2 commits intononeback:mainfrom
LinPr:fix-taskflow-name

Conversation

@LinPr
Copy link
Contributor

@LinPr LinPr commented Apr 3, 2025

No description provided.

taskflow.go Outdated
// NewTaskFlow returns a taskflow struct
func NewTaskFlow(name string) *TaskFlow {
return &TaskFlow{
name: name,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can just remove the name attribute of Taskflow struct if it is unused

Copy link
Contributor Author

@LinPr LinPr Apr 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well i think this is a useful attribute, I meet the situation that I need to use taskflow name when I write programs, so I recommend to keep it rather than just removing it

@LinPr LinPr changed the title fix: set taskflow name when initialize a new object fix(taskflow): set taskflow name when initialize a new object Apr 6, 2025
@noneback
Copy link
Owner

noneback commented Apr 7, 2025

I suggest we use one commit at a time if pr is simple.

@noneback noneback merged commit 9d8c269 into noneback:main Apr 7, 2025
1 check passed
@codecov
Copy link

codecov bot commented Apr 7, 2025

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 86.75%. Comparing base (67b2e67) to head (4d1e8b3).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
taskflow.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #77   +/-   ##
=======================================
  Coverage   86.75%   86.75%           
=======================================
  Files          13       13           
  Lines         717      717           
=======================================
  Hits          622      622           
  Misses         73       73           
  Partials       22       22           
Flag Coverage Δ
unittests 86.75% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants