mirror of
https://seed.radicle.dev/rad:z6cFWeWpnZNHh9rUW8phgA3b5yGt.git
synced 2026-10-26 23:00:38 +08:00
We add tests for ODB functionality, as well as a new `TreeBuilder` Struct to make building git trees easier (see below). The `git2::TreeBuilder` can be a pain to use since it has a lifetime that is tied to the `git2::Repository`. This was causing issues when trying to write generators for property tests. Instead, define a custom TreeBuilder which is a defunctionalised list operations that represent the `insert` and `remove` methods on `git2::TreeBuilder`. The implementation of writing a tree then becomes converting the custom `TreeBuilder` into a `git2::TreeBuilder`. Signed-off-by: Jorge Iglesias Garcia <me@jorgeig.com>
41 lines
721 B
TOML
41 lines
721 B
TOML
[package]
|
|
name = "tests"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
license = "GPL-3.0-or-later"
|
|
|
|
publish = false
|
|
|
|
[lib]
|
|
doctest = false
|
|
test = true
|
|
doc = false
|
|
|
|
[dev-dependencies.git-ext-test]
|
|
path = "../radicle-git-ext/t"
|
|
features = ["test"]
|
|
|
|
[dev-dependencies.git-ref-format-test]
|
|
path = "../git-ref-format/t"
|
|
features = ["test"]
|
|
|
|
[dev-dependencies.git-trailers-test]
|
|
path = "../git-trailers/t"
|
|
features = ["test"]
|
|
|
|
# [dev-dependencies.gitd-lib-test]
|
|
# path = "../cli/gitd-lib/t"
|
|
|
|
[dev-dependencies.link-git-test]
|
|
path = "../link-git/t"
|
|
features = ["test"]
|
|
|
|
[dev-dependencies.radicle-surf-test]
|
|
path = "../radicle-surf/t"
|
|
features = ["test"]
|
|
|
|
[dev-dependencies.git-storage-test]
|
|
path = "../git-storage/t"
|
|
features = ["test"]
|
|
|