diff options
author | John Cai <jcai@gitlab.com> | 2022-12-31 02:08:07 +0300 |
---|---|---|
committer | John Cai <jcai@gitlab.com> | 2023-01-04 01:56:02 +0300 |
commit | 032fcc847344e90f32ff547d2d679a18c4a07baa (patch) | |
tree | e1ecac249a4f90d1687f44f990a1618684bc92cd | |
parent | 1aa39365f35db71d95963f49cb0e8d704e3618e5 (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.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |