-
Notifications
You must be signed in to change notification settings - Fork 1
ディレクトリ数が合わないパターンがあったため修正 #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
{ | ||
name: "pattern1", | ||
paths: []string{ | ||
"empty_directory/", | ||
"a.txt", | ||
"a.tgz", | ||
"source/a.tgz", | ||
"source/b.tgz", | ||
"source/c.tgz", | ||
"tmp_directory/", | ||
"tmp_directory/a.png", | ||
"tmp_directory/empty_directory/", | ||
"tmp_directory/source/a.tgz", | ||
}, | ||
want: "5 directories, 7 files", | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
既存のテストケースです!
{ | ||
name: "pattern2", | ||
paths: []string{ | ||
"skillset-visualizer/terraform/state/default.tfstate", | ||
"standard/module/structure/default.tfstate", | ||
}, | ||
want: "6 directories, 2 files", | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
こちらが今回バグ発見時のパターンのケースです🙇
@ddddddO ありがとうございます!助かります! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ありがとうございます!
@owlinux1000
すみません、バグを埋め込んでしまってたので修正PRです🙇
事象
↑のようなバケット構成で試したのですが、サマリで
2 directories
になってしまってました...(本来は、6 directories
が意図する結果)gcstree.go内で、以下のようにprint debugすると、
以下の結果でした
バグ修正前のcounterの実装ですと、
の2ディレクトリのみをディレクトリとしてカウントするため、それ以外のディレクトリもカウントするようにしました!
申し訳ないのですが、もう一度取り込んでいただけると...🔥🙇🔥