Skip to content

Commit 7b373db

Browse files
lint
1 parent d480a89 commit 7b373db

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

iceberg-rust/src/view/transaction/operation.rs

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -168,21 +168,23 @@ impl Operation {
168168
}
169169
}
170170

171+
#[cfg(test)]
171172
mod tests {
172-
use super::upsert_representations;
173173
use iceberg_rust_spec::view_metadata::ViewRepresentation;
174174

175+
use crate::view::transaction::operation::upsert_representations;
176+
175177
#[test]
176178
fn test_upsert_representations() {
177179
assert_eq!(
178180
upsert_representations(
179-
&vec![
181+
&[
180182
ViewRepresentation::sql("a1", Some("a")),
181-
ViewRepresentation::sql("b1", Some("b")),
183+
ViewRepresentation::sql("b1", Some("b"))
182184
],
183-
&vec![
185+
&[
184186
ViewRepresentation::sql("b2", Some("b")),
185-
ViewRepresentation::sql("c2", Some("c")),
187+
ViewRepresentation::sql("c2", Some("c"))
186188
]
187189
),
188190
vec![
@@ -193,13 +195,13 @@ mod tests {
193195
);
194196
assert_eq!(
195197
upsert_representations(
196-
&vec![
198+
&[
197199
ViewRepresentation::sql("a1", Some("a")),
198-
ViewRepresentation::sql("b1", Some("b")),
200+
ViewRepresentation::sql("b1", Some("b"))
199201
],
200-
&vec![
202+
&[
201203
ViewRepresentation::sql("c2", Some("c")),
202-
ViewRepresentation::sql("a2", Some("a")),
204+
ViewRepresentation::sql("a2", Some("a"))
203205
]
204206
),
205207
vec![

0 commit comments

Comments
 (0)