()
| 45 | |
| 46 | |
| 47 | public static void init() { |
| 48 | RxHelper.runOnBackground(data -> { |
| 49 | String json = FileUtil.readFile(fileName); |
| 50 | if (!TextUtils.isEmpty(json)) { |
| 51 | List<TestResult> ret = GsonUtil.INSTANCE.toList(json, TestResult.class); |
| 52 | if (ret != null) { |
| 53 | localCache.addAll(ret); |
| 54 | } |
| 55 | } |
| 56 | }); |
| 57 | } |
| 58 | |
| 59 | public static void getTestData(int count, ExtSimpleCallback<List<TestResult>> cb) { |
| 60 | if (cb == null) return; |
no test coverage detected