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