Skip to content
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

新增了sqlx.NewNullXXX系列方法 #227

Merged
merged 8 commits into from
Oct 9, 2023
Merged

Conversation

wureny
Copy link
Contributor

@wureny wureny commented Oct 9, 2023

@codecov
Copy link

codecov bot commented Oct 9, 2023

Codecov Report

Merging #227 (87c138d) into dev (856d32a) will increase coverage by 0.12%.
The diff coverage is 100.00%.

❗ Current head 87c138d differs from pull request most recent head 791101b. Consider uploading reports for the commit 791101b to get more accurate results

@@            Coverage Diff             @@
##              dev     #227      +/-   ##
==========================================
+ Coverage   95.71%   95.84%   +0.12%     
==========================================
  Files          56       57       +1     
  Lines        3082     3106      +24     
==========================================
+ Hits         2950     2977      +27     
+ Misses        101       99       -2     
+ Partials       31       30       -1     
Files Coverage Δ
sqlx/newnull.go 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@longyue0521
Copy link
Collaborator

修复一下下方的lint错误, 并提供单元测试

@wureny
Copy link
Contributor Author

wureny commented Oct 9, 2023

收到

补充了license的内容;
Comment on lines 25 to 31
type args struct {
val bool
}
tests := []struct {
name string
args args
want sql.NullBool
Copy link
Collaborator

Choose a reason for hiding this comment

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

把args结构体中的val内容平铺在tests := []struct {...},并去掉args结构体

检查下方所有测试,使其满足上述要求

want sql.NullBool
}{
{
name: "test",
Copy link
Collaborator

Choose a reason for hiding this comment

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

命名不准确,还有重复,应该描述测试场景

检查下方所有测试,使其满足上述要求

@longyue0521
Copy link
Collaborator

学会查看lint提示, 点击下方 "Format Go code" 末尾的Details查看详细的报错信息并修复问题

@longyue0521 longyue0521 merged commit 7c4e022 into ecodeclub:dev Oct 9, 2023
4 checks passed
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