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

add test for internal/errors/tensorflow #982

Merged
merged 4 commits into from
Feb 8, 2021

Conversation

vankichi
Copy link
Contributor

@vankichi vankichi commented Feb 4, 2021

Signed-off-by: vankichi kyukawa315@gmail.com

Wait for reply from @datelier

Description:

Added the test for internal/errors/tensorflow.go and the comment for each function.
grammar check has passed.

Related Issue:

How Has This Been Tested?:

Environment:

  • Go Version: 1.15.7
  • Docker Version: 19.03.8
  • Kubernetes Version: 1.18.2
  • NGT Version: 1.13.1

Types of changes:

  • Bug fix [type/bug]
  • New feature [type/feature]
  • Add tests [type/test]
  • Security related changes [type/security]
  • Add documents [type/documentation]
  • Refactoring [type/refactoring]
  • Update dependencies [type/dependency]
  • Update benchmarks and performances [type/bench]
  • Update CI [type/ci]

Changes to Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable?
  • Have you successfully ran tests with your changes locally?

Checklist:

  • I have read the CONTRIBUTING document.
  • I have checked open Pull Requests for the similar feature or fixes?
  • I have added tests and benchmarks to cover my changes.
  • I have ensured all new and existing tests passed.
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly.

@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Feb 4, 2021

[CHATOPS:HELP] ChatOps commands.

  • 🙆‍♀️ /approve - approve
  • 💌 /changelog - add changelog comment
  • 🍱 /format - format codes and add licenses
  • /gen-test - generate test codes
  • 🏷️ /label - add labels
  • /rebase - rebase master
  • 🔚 2️⃣ 🔚 /label actions/e2e-deploy - run E2E deploy & integration test

internal/errors/tensorflow_test.go Show resolved Hide resolved
},
{
name: "return an ErrInputLength error when i and f is zero value",
args: args{
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [golangci] reported by reviewdog 🐶
File is not gofmt-ed with -s (gofmt)

}
})
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [golangci] reported by reviewdog 🐶
File is not gofumpt-ed (gofumpt)

}
})
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [golangci] reported by reviewdog 🐶
File is not gofumpt-ed (gofumpt)

@vankichi
Copy link
Contributor Author

vankichi commented Feb 4, 2021

/format

@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Feb 4, 2021

[FORMAT] Updating license headers and formatting go codes triggered by vankichi.

@codecov
Copy link

codecov bot commented Feb 4, 2021

Codecov Report

Merging #982 (59bab6e) into master (6e80d7c) will decrease coverage by 0.07%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #982      +/-   ##
==========================================
- Coverage   14.53%   14.46%   -0.08%     
==========================================
  Files         493      493              
  Lines       27967    27967              
==========================================
- Hits         4065     4045      -20     
- Misses      23661    23676      +15     
- Partials      241      246       +5     
Impacted Files Coverage Δ
internal/errors/tensorflow.go 100.00% <ø> (+100.00%) ⬆️
internal/db/storage/blob/s3/reader/reader.go 63.04% <0.00%> (-31.53%) ⬇️
internal/errgroup/group.go 92.42% <0.00%> (-1.52%) ⬇️
internal/worker/worker.go 82.29% <0.00%> (-1.05%) ⬇️
internal/worker/queue.go 100.00% <0.00%> (+5.00%) ⬆️

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 6e80d7c...887a61b. Read the comment docs.

@vankichi vankichi changed the title [WIP] add test for internal/errors/tensorflow add test for internal/errors/tensorflow Feb 4, 2021
@vankichi vankichi marked this pull request as ready for review February 4, 2021 11:17
hlts2
hlts2 previously approved these changes Feb 8, 2021
kevindiu
kevindiu previously approved these changes Feb 8, 2021
Copy link
Contributor

@kevindiu kevindiu left a comment

Choose a reason for hiding this comment

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

LGTM

@kevindiu
Copy link
Contributor

kevindiu commented Feb 8, 2021

/rebase
/format
/approve

@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Feb 8, 2021

[REBASE] Rebase triggered by kevindiu for branch: test/internal/add-newtest-for-errors-tensorflow

@vdaas-ci vdaas-ci dismissed stale reviews from kevindiu and hlts2 via b3878b0 February 8, 2021 04:52
@vdaas-ci vdaas-ci force-pushed the test/internal/add-newtest-for-errors-tensorflow branch from 6d27f35 to b3878b0 Compare February 8, 2021 04:52
@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Feb 8, 2021

[FORMAT] Updating license headers and formatting go codes triggered by kevindiu.

vdaas-ci
vdaas-ci previously approved these changes Feb 8, 2021
Copy link
Collaborator

@vdaas-ci vdaas-ci left a comment

Choose a reason for hiding this comment

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

[APPROVED] This PR is approved by kevindiu.

@kevindiu
Copy link
Contributor

kevindiu commented Feb 8, 2021

/rebase
/format
/approve

@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Feb 8, 2021

[REBASE] Rebase triggered by kevindiu for branch: test/internal/add-newtest-for-errors-tensorflow

vankichi and others added 3 commits February 8, 2021 09:28
Signed-off-by: vankichi <kyukawa315@gmail.com>
Signed-off-by: vankichi <kyukawa315@gmail.com>
Signed-off-by: vankichi <kyukawa315@gmail.com>
@vdaas-ci vdaas-ci force-pushed the test/internal/add-newtest-for-errors-tensorflow branch from b3878b0 to 887a61b Compare February 8, 2021 09:28
@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Feb 8, 2021

[FORMAT] Updating license headers and formatting go codes triggered by kevindiu.

Copy link
Collaborator

@vdaas-ci vdaas-ci left a comment

Choose a reason for hiding this comment

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

[APPROVED] This PR is approved by kevindiu.

@kevindiu kevindiu merged commit 81c93d3 into master Feb 8, 2021
@kevindiu kevindiu deleted the test/internal/add-newtest-for-errors-tensorflow branch February 8, 2021 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants