github.com/petermattis/pebble@v0.0.0-20190905164901-ab51a2166067/testdata/ingest_memtable_overlaps (about)

     1  define
     2  set a 1
     3  ----
     4  
     5  overlaps
     6  a-b
     7  b-c
     8  ----
     9  true
    10  false
    11  
    12  define
    13  set b 1
    14  ----
    15  
    16  overlaps
    17  a-b
    18  b-c
    19  ----
    20  true
    21  true
    22  
    23  define
    24  set c 1
    25  ----
    26  
    27  overlaps
    28  a-b
    29  a-c
    30  ----
    31  false
    32  true
    33  
    34  define
    35  set a 1
    36  set d 2
    37  set g 3
    38  ----
    39  
    40  overlaps
    41  b-c
    42  e-f
    43  b-c e-f
    44  b-c e-g
    45  ----
    46  false
    47  false
    48  false
    49  true
    50  
    51  define
    52  set a 1
    53  set d 2
    54  set e 3
    55  set g 4
    56  ----
    57  
    58  overlaps
    59  b-c
    60  e-f
    61  b-c e-f
    62  b-c e0-f
    63  ----
    64  false
    65  true
    66  true
    67  false
    68  
    69  define
    70  set a 1
    71  set c 2
    72  set d 3
    73  set g 4
    74  ----
    75  
    76  overlaps
    77  b-c
    78  e-f
    79  b-c e-f
    80  b-b1 e-f
    81  ----
    82  true
    83  false
    84  true
    85  false
    86  
    87  # The del-range tests are specific to the comparer.
    88  
    89  define default
    90  del-range a c
    91  del-range e g
    92  ----
    93  
    94  overlaps
    95  a-b
    96  b-c
    97  c-d
    98  c-e
    99  f-h
   100  g-h
   101  ----
   102  true
   103  true
   104  false
   105  true
   106  true
   107  false
   108  
   109  define reverse
   110  del-range d b
   111  ----
   112  
   113  overlaps
   114  c-b
   115  b-a
   116  e-d
   117  ----
   118  true
   119  false
   120  true