MCPcopy Create free account
hub / github.com/LianjiaTech/json-diff / diff1

Method diff1

src/test/java/com/ke/diff/diff/DiffTest.java:41–48  ·  view source on GitHub ↗

测试withNoisePahList方法

()

Source from the content-addressed store, hash-verified

39 * 测试withNoisePahList方法
40 */
41 @Test
42 public void diff1() {
43 String str1 = "{\"a\":null}";
44 String str2 = "{\"a\":\"\"}";
45 List<String> noiseList = Lists.newArrayList("a");
46 List<Result> diff = new Diff().withNoisePahList(noiseList).diff(str1, str2);
47 assertEquals(0,diff.size());
48 }
49
50 /**
51 * 测试withPathModule withAlgorithmEnum方法

Callers

nothing calls this directly

Calls 2

withNoisePahListMethod · 0.80
diffMethod · 0.65

Tested by

no test coverage detected