MCPcopy Create free account
hub / github.com/couchbase/moss / testOps

Function testOps

collection_test.go:639–922  ·  view source on GitHub ↗
(t *testing.T, m Collection)

Source from the content-addressed store, hash-verified

637}
638
639func testOps(t *testing.T, m Collection) {
640 tests := []opTest{
641 {"ss+", "S", "", "", nil},
642 {"get", "S", "a", "_", nil},
643 {"get", "S", "b", "_", nil},
644 {"itr", "S", "_:_", "", nil},
645 {"itr", "S", "a:_", "", nil},
646 {"itr", "S", "_:b", "", nil},
647 {"itr", "S", "a:b", "", nil},
648 {"itr", "S", "b:a", "", nil},
649 {"ss-", "S", "", "", nil},
650
651 // ---------------------------------
652
653 {"bb+", "1", "", "", nil},
654 {"set", "1", "a", "A", nil},
655 {"bb!", "1", "", "", nil},
656 {"ss+", "S", "", "", nil},
657 {"get", "S", "a", "A", nil},
658 {"get", "S", "b", "_", nil},
659 {"itr", "S", "_:_", "+a=A", nil},
660 {"itr", "S", "a:_", "+a=A", nil},
661 {"itr", "S", "_:b", "+a=A", nil},
662 {"itr", "S", "a:a", "", nil},
663 {"itr", "S", "b:b", "", nil},
664 {"itr", "S", "b:a", "", nil},
665 {"itr", "S", "b:_", "", nil},
666 {"ss-", "S", "", "", nil},
667
668 // ---------------------------------
669
670 {"bb+", "2", "", "", nil},
671 {"del", "2", "a", "_", nil},
672 {"bb!", "2", "", "", nil},
673 {"ss+", "S", "", "", nil},
674 {"get", "S", "a", "_", nil},
675 {"get", "S", "b", "_", nil},
676 {"itr", "S", "_:_", "", nil},
677 {"itr", "S", "a:_", "", nil},
678 {"itr", "S", "_:b", "", nil},
679 {"itr", "S", "a:a", "", nil},
680 {"itr", "S", "b:b", "", nil},
681 {"itr", "S", "b:a", "", nil},
682 {"itr", "S", "b:_", "", nil},
683 {"ss-", "S", "", "", nil},
684
685 // ---------------------------------
686
687 {"bb+", "3", "", "", nil},
688 {"set", "3", "f", "F", nil},
689 {"set", "3", "d", "D", nil},
690 {"set", "3", "b", "B", nil},
691 {"bb!", "3", "", "", nil},
692 {"ss+", "S", "", "", nil},
693 {"get", "S", "a", "_", nil},
694 {"get", "S", "b", "B", nil},
695 {"get", "S", "c", "_", nil},
696 {"get", "S", "d", "D", nil},

Callers 3

testStoreOpsFunction · 0.85
TestOpsAsyncMergeFunction · 0.85
TestOpsDeferredSortFunction · 0.85

Calls 1

runOpTestsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…