All files / json-patch constants.ts

100% Statements 30/30
100% Branches 2/2
100% Functions 1/1
100% Lines 30/30

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 4123x   23x 23x 23x 23x 23x 23x     23x 23x     23x 23x     23x 23x 23x     23x 23x 23x 23x 23x 23x 23x 23x 23x 23x 23x 23x 23x 23x 23x 23x    
export enum OPCODE {
  // JSON Patch.
  add = 0,
  remove = 1,
  replace = 2,
  copy = 3,
  move = 4,
  test = 5,
 
  // String editing.
  str_ins = 6,
  str_del = 7,
 
  // Extra
  flip = 8,
  inc = 9,
 
  // Slate.js
  split = 10,
  merge = 11,
  extend = 12,
 
  // JSON Predicate
  contains = 30,
  defined = 31,
  ends = 32,
  in = 33,
  less = 34,
  matches = 35,
  more = 36,
  starts = 37,
  undefined = 38,
  test_type = 39,
  test_string = 40,
  test_string_len = 41,
  type = 42,
  and = 43,
  not = 44,
  or = 45,
}