• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2022 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16import { paramMock } from "../utils"
17export function mockDataSharePredicates() {
18    const DataSharePredicatesClass = class DataSharePredicates {
19      constructor() {
20        this.equalTo = function (...args) {
21          console.warn("DataSharePredicates.equalTo interface mocked in the Previewer. How this interface works on the" +
22            " Previewer may be different from that on a real device.")
23          return new DataSharePredicatesClass();
24        };
25        this.notEqualTo = function (...args) {
26          console.warn("DataSharePredicates.notEqualTo interface mocked in the Previewer. How this interface works on the" +
27            " Previewer may be different from that on a real device.")
28          return new DataSharePredicatesClass();
29        };
30        this.beginWrap = function (...args) {
31          console.warn("DataSharePredicates.beginWrap interface mocked in the Previewer. How this interface works on the" +
32            " Previewer may be different from that on a real device.")
33          return new DataSharePredicatesClass();
34        };
35        this.endWrap = function (...args) {
36          console.warn("DataSharePredicates.endWrap interface mocked in the Previewer. How this interface works on the" +
37            " Previewer may be different from that on a real device.")
38          return new DataSharePredicatesClass();
39        };
40        this.or = function (...args) {
41          console.warn("DataSharePredicates.or interface mocked in the Previewer. How this interface works on the" +
42            " Previewer may be different from that on a real device.")
43          return new DataSharePredicatesClass();
44        };
45        this.and = function (...args) {
46          console.warn("DataSharePredicates.and interface mocked in the Previewer. How this interface works on the" +
47            " Previewer may be different from that on a real device.")
48          return new DataSharePredicatesClass();
49        };
50        this.contains = function (...args) {
51          console.warn("DataSharePredicates.contains interface mocked in the Previewer. How this interface works on the" +
52            " Previewer may be different from that on a real device.")
53          return new DataSharePredicatesClass();
54        };
55        this.beginsWith = function (...args) {
56          console.warn("DataSharePredicates.beginsWith interface mocked in the Previewer. How this interface works on the" +
57            " Previewer may be different from that on a real device.")
58          return new DataSharePredicatesClass();
59        };
60        this.endsWith = function (...args) {
61          console.warn("DataSharePredicates.endsWith interface mocked in the Previewer. How this interface works on the" +
62            " Previewer may be different from that on a real device.")
63          return new DataSharePredicatesClass();
64        };
65        this.isNull = function (...args) {
66          console.warn("DataSharePredicates.isNull interface mocked in the Previewer. How this interface works on the" +
67            " Previewer may be different from that on a real device.")
68          return new DataSharePredicatesClass();
69        };
70        this.isNotNull = function (...args) {
71          console.warn("DataSharePredicates.isNotNull interface mocked in the Previewer. How this interface works on the" +
72            " Previewer may be different from that on a real device.")
73          return new DataSharePredicatesClass();
74        };
75        this.like = function (...args) {
76          console.warn("DataSharePredicates.like interface mocked in the Previewer. How this interface works on the" +
77            " Previewer may be different from that on a real device.")
78          return new DataSharePredicatesClass();
79        };
80        this.unlike = function (...args) {
81            console.warn("DataSharePredicates.unlike interface mocked in the Previewer. How this interface works on the" +
82              " Previewer may be different from that on a real device.")
83            return new DataSharePredicatesClass();
84          };
85        this.glob = function (...args) {
86          console.warn("DataSharePredicates.glob interface mocked in the Previewer. How this interface works on the" +
87            " Previewer may be different from that on a real device.")
88          return new DataSharePredicatesClass();
89        };
90        this.between = function (...args) {
91          console.warn("DataSharePredicates.between interface mocked in the Previewer. How this interface works on the" +
92            " Previewer may be different from that on a real device.")
93          return new DataSharePredicatesClass();
94        };
95        this.notBetween = function (...args) {
96          console.warn("DataSharePredicates.notBetween interface mocked in the Previewer. How this interface works on the" +
97            " Previewer may be different from that on a real device.")
98          return new DataSharePredicatesClass();
99        };
100        this.greaterThan = function (...args) {
101          console.warn("DataSharePredicates.greaterThan interface mocked in the Previewer. How this interface works on the" +
102            " Previewer may be different from that on a real device.")
103          return new DataSharePredicatesClass();
104        };
105        this.lessThan = function (...args) {
106          console.warn("DataSharePredicates.lessThan interface mocked in the Previewer. How this interface works on the" +
107            " Previewer may be different from that on a real device.")
108          return new DataSharePredicatesClass();
109        };
110        this.greaterThanOrEqualTo = function (...args) {
111          console.warn("DataSharePredicates.greaterThanOrEqualTo interface mocked in the Previewer. How this interface works on the" +
112            " Previewer may be different from that on a real device.")
113          return new DataSharePredicatesClass();
114        };
115        this.lessThanOrEqualTo = function (...args) {
116          console.warn("DataSharePredicates.lessThanOrEqualTo interface mocked in the Previewer. How this interface works on the" +
117            " Previewer may be different from that on a real device.")
118          return new DataSharePredicatesClass();
119        };
120        this.orderByAsc = function (...args) {
121          console.warn("DataSharePredicates.orderByAsc interface mocked in the Previewer. How this interface works on the" +
122            " Previewer may be different from that on a real device.")
123          return new DataSharePredicatesClass();
124        };
125        this.orderByDesc = function (...args) {
126          console.warn("DataSharePredicates.orderByDesc interface mocked in the Previewer. How this interface works on the" +
127            " Previewer may be different from that on a real device.")
128          return new DataSharePredicatesClass();
129        };
130        this.distinct = function (...args) {
131          console.warn("DataSharePredicates.distinct interface mocked in the Previewer. How this interface works on the" +
132            " Previewer may be different from that on a real device.")
133          return new DataSharePredicatesClass();
134        };
135        this.limit = function (...args) {
136          console.warn("DataSharePredicates.limit interface mocked in the Previewer. How this interface works on the" +
137            " Previewer may be different from that on a real device.")
138          return new DataSharePredicatesClass();
139        };
140        this.groupBy = function (...args) {
141          console.warn("DataSharePredicates.groupBy interface mocked in the Previewer. How this interface works on the" +
142            " Previewer may be different from that on a real device.")
143          return new DataSharePredicatesClass();
144        };
145        this.indexedBy = function (...args) {
146          console.warn("DataSharePredicates.indexedBy interface mocked in the Previewer. How this interface works on the" +
147            " Previewer may be different from that on a real device.")
148          return new DataSharePredicatesClass();
149        };
150        this.in = function (...args) {
151          console.warn("DataSharePredicates.in interface mocked in the Previewer. How this interface works on the" +
152            " Previewer may be different from that on a real device.")
153          return new DataSharePredicatesClass();
154        };
155        this.notIn = function (...args) {
156          console.warn("DataSharePredicates.notIn interface mocked in the Previewer. How this interface works on the" +
157            " Previewer may be different from that on a real device.")
158          return new DataSharePredicatesClass();
159        };
160        this.prefixKey = function (...args) {
161          console.warn("DataSharePredicates.prefixKey interface mocked in the Previewer. How this interface works on the" +
162            " Previewer may be different from that on a real device.")
163          return new DataSharePredicatesClass();
164        };
165        this.inKeys = function (...args) {
166          console.warn("DataSharePredicates.inKeys interface mocked in the Previewer. How this interface works on the" +
167            " Previewer may be different from that on a real device.")
168          return new DataSharePredicatesClass();
169        };
170      }
171    }
172      const dataSharePredicatesMock = {
173        DataSharePredicates: DataSharePredicatesClass
174    }
175    return dataSharePredicatesMock;
176}