resolve #273: remove global constant MAX_DEPTH, instead use the respective value from Params (#314)

* resolve #273: remove global constant MAX_DEPTH, instead use the respective value from Params

* simplify partialeq at mockmainpod
This commit is contained in:
arnaucube 2025-06-26 13:54:28 +02:00 committed by GitHub
parent 115c3c1152
commit b6041508e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 60 additions and 41 deletions

View file

@ -83,6 +83,9 @@ impl Dictionary {
pub fn kvs(&self) -> &HashMap<Key, Value> {
&self.kvs
}
pub fn max_depth(&self) -> usize {
self.max_depth
}
}
impl PartialEq for Dictionary {
@ -171,6 +174,9 @@ impl Set {
pub fn set(&self) -> &HashSet<Value> {
&self.set
}
pub fn max_depth(&self) -> usize {
self.max_depth
}
}
impl PartialEq for Set {
@ -256,6 +262,9 @@ impl Array {
pub fn array(&self) -> &[Value] {
&self.array
}
pub fn max_depth(&self) -> usize {
self.max_depth
}
}
impl PartialEq for Array {