expose SelectBuilder for table Get operation (#251)

* expose select builder for get

* add comment
This commit is contained in:
Yemin Li
2024-09-30 16:25:14 -04:00
committed by GitHub
parent 3ea85fdd5d
commit cc68867ad0
2 changed files with 20 additions and 0 deletions

View File

@@ -60,6 +60,17 @@ func TestTableGet(t *testing.T) {
t.Error(diff, names)
}
}
// run GetBuilder on the same data set
for _, test := range table {
stmt, names := New(test.M).GetBuilder(test.C...).ToCql()
if diff := cmp.Diff(test.S, stmt); diff != "" {
t.Error(diff)
}
if diff := cmp.Diff(test.N, names); diff != "" {
t.Error(diff, names)
}
}
}
func TestTableSelect(t *testing.T) {