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 16// @ts-ignore 17import {TransferConfig} from "../../../dist/hdc/message/TransferConfig.js"; 18 19describe('TransferConfig Test', ()=> { 20 let transferConfig = new TransferConfig(); 21 it('TransferConfigTest01', function () { 22 expect(transferConfig).not.toBeUndefined() 23 }); 24 25 it('TransferConfigTest02', function () { 26 expect(transferConfig.fileSize).toBeUndefined() 27 }); 28 29 it('TransferConfigTest03', function () { 30 transferConfig.fileSize = true; 31 expect(transferConfig.fileSize).toBeTruthy() 32 }); 33 34 it('TransferConfigTest04', function () { 35 expect(transferConfig.atime).toBeUndefined() 36 }); 37 38 it('TransferConfigTest05', function () { 39 transferConfig.atime = true; 40 expect(transferConfig.atime).toBeTruthy() 41 }); 42 43 it('TransferConfigTest06', function () { 44 expect(transferConfig.mtime).toBeUndefined() 45 }); 46 47 it('TransferConfigTest07', function () { 48 transferConfig.mtime = true; 49 expect(transferConfig.mtime).toBeTruthy() 50 }); 51 52 it('TransferConfigTest08', function () { 53 expect(transferConfig.options).toBeFalsy() 54 }); 55 56 it('TransferConfigTest09', function () { 57 transferConfig.options = true; 58 expect(transferConfig.options).toBeTruthy() 59 }); 60 61 it('TransferConfigTest10', function () { 62 expect(transferConfig.path).toBeUndefined() 63 }); 64 65 it('TransferConfigTest11', function () { 66 transferConfig.path = true; 67 expect(transferConfig.path).toBeTruthy() 68 }); 69 70 it('TransferConfigTest12', function () { 71 expect(transferConfig.optionalName).toBeUndefined() 72 }); 73 74 it('TransferConfigTest13', function () { 75 transferConfig.optionalName = true; 76 expect(transferConfig.optionalName).toBeTruthy() 77 }); 78 79 it('TransferConfigTest14', function () { 80 expect(transferConfig.updateIfNew).toBeUndefined() 81 }); 82 83 it('TransferConfigTest15', function () { 84 transferConfig.updateIfNew = true; 85 expect(transferConfig.updateIfNew).toBeTruthy() 86 }); 87 88 it('TransferConfigTest16', function () { 89 expect(transferConfig.compressType).toBeUndefined() 90 }); 91 92 it('TransferConfigTest17', function () { 93 transferConfig.compressType = true; 94 expect(transferConfig.compressType).toBeTruthy() 95 }); 96 97 it('TransferConfigTest18', function () { 98 expect(transferConfig.holdTimestamp).toBeUndefined() 99 }); 100 101 it('TransferConfigTest19', function () { 102 transferConfig.holdTimestamp = true; 103 expect(transferConfig.holdTimestamp).toBeTruthy() 104 }); 105 106 it('TransferConfigTest20', function () { 107 expect(transferConfig.functionName).toBeUndefined() 108 }); 109 110 it('TransferConfigTest21', function () { 111 transferConfig.functionName = true; 112 expect(transferConfig.functionName).toBeTruthy() 113 }); 114 115 it('TransferConfigTest22', function () { 116 expect(transferConfig.clientCwd).toBeUndefined() 117 }); 118 119 it('TransferConfigTest23', function () { 120 transferConfig.clientCwd = true; 121 expect(transferConfig.clientCwd).toBeTruthy() 122 }); 123 124 it('TransferConfigTest24', function () { 125 expect(transferConfig.reserve1).toBeUndefined() 126 }); 127 128 it('TransferConfigTest25', function () { 129 transferConfig.reserve1 = true; 130 expect(transferConfig.reserve1).toBeTruthy() 131 }); 132 133 it('TransferConfigTest26', function () { 134 expect(transferConfig.reserve2).toBeUndefined() 135 }); 136 137 it('TransferConfigTest27', function () { 138 transferConfig.reserve2 = true; 139 expect(transferConfig.reserve2).toBeTruthy() 140 }); 141 142 it('TransferConfigTest28', function () { 143 expect(transferConfig.toString()).not.toBeUndefined() 144 }); 145})