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 */
15import { ConstructorItem, ConstructorComparison,FileInfo,AllocationFunction } from '../../../src/js-heap/model/UiStruct';
16
17jest.mock('../../../src/js-heap/logic/HeapLoader', () => {
18    return {};
19});
20jest.mock('../../../src/js-heap/model/DatabaseStruct', () => {});
21describe('UiStruct Test', () => {
22    it('UiStructTest01', () => {
23        let constructorItem = new ConstructorItem();
24        expect(constructorItem).not.toBeUndefined();
25    });
26
27    it('UiStructTest02', () => {
28        let constructorComparison  = new ConstructorComparison();
29        expect(constructorComparison).not.toBeUndefined();
30    });
31
32    it('UiStructTest02', () => {
33        let constructorComparison  = new ConstructorComparison();
34        expect(constructorComparison).not.toBeUndefined();
35    });
36    it('UiStructTest03', () => {
37        let allocationFunction  = new AllocationFunction();
38        expect(allocationFunction).not.toBeUndefined();
39    });
40    it('UiStructTest04', () => {
41        let constructorItem = new ConstructorItem();
42        expect(constructorItem.getChildren()).toStrictEqual([]);
43    });
44    it('UiStructTest05', () => {
45        let constructorItem = new ConstructorItem();
46        let data = [
47            {
48                fileId :1,
49                distance:2,
50                shallowSize:123,
51                nodeName: '',
52                edgeCount:1,
53                edgeType:'',
54                childCount:[],
55                hasNext:true,
56            }
57            ]
58        expect(constructorItem.cloneContent(data)).toBeUndefined();
59    });
60    it('UiStructTest06', () => {
61        let constructorComparison  = new ConstructorComparison();
62        expect(constructorComparison.getChildren()).toStrictEqual([]);
63    });
64    it('UiStructTest07', () => {
65        let allocationFunction  = new AllocationFunction();
66        expect(allocationFunction.getChildren()).toStrictEqual([]);
67    });
68})
69