Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Cai <jcai@gitlab.com>2022-12-31 02:08:07 +0300
committerJohn Cai <jcai@gitlab.com>2023-01-04 01:56:02 +0300
commit032fcc847344e90f32ff547d2d679a18c4a07baa (patch)
treee1ecac249a4f90d1687f44f990a1618684bc92cd
parent1aa39365f35db71d95963f49cb0e8d704e3618e5 (diff)
Update STYLE.md with test functionsjc-unify-git-operations
Blobs, Trees, and Commits can all now be written using the localrepo package. Update the style guide correspondingly. WriteTag has not yet been moved over.
-rw-r--r--STYLE.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/STYLE.md b/STYLE.md
index 7f6c8c70b..5f059c460 100644
--- a/STYLE.md
+++ b/STYLE.md
@@ -373,9 +373,9 @@ SHA256 object hash. Using seed repositories is thus discouraged.
As an alternative, tests can rely on the following helper functions to generate
their test data:
-- `gittest.WriteCommit()`
-- `gittest.WriteTree()`
-- `gittest.WriteBlob()`
+- `localrepo.WriteTestCommit()`
+- `localrepo.WriteTestTree()`
+- `localrepo.WriteTestBlob()`
- `gittest.WriteTag()`
## Black box and white box testing