File tree Expand file tree Collapse file tree 3 files changed +71
-1
lines changed
Commands/Prepare/Integrate
Tests/XCRemoteCacheTests/Dependencies Expand file tree Collapse file tree 3 files changed +71
-1
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ public class XCIntegrate {
9999 includes: targetsInclude. integrateArrayArguments
100100 )
101101 let buildSettingsAppenderOptions : BuildSettingsIntegrateAppenderOption = [
102- . disableSwiftDriverIntegration
102+ . disableSwiftDriverIntegration,
103103 ]
104104 let buildSettingsAppender = XcodeProjBuildSettingsIntegrateAppender (
105105 mode: context. mode,
Original file line number Diff line number Diff line change 1+ // Copyright (c) 2021 Spotify AB.
2+ //
3+ // Licensed to the Apache Software Foundation (ASF) under one
4+ // or more contributor license agreements. See the NOTICE file
5+ // distributed with this work for additional information
6+ // regarding copyright ownership. The ASF licenses this file
7+ // to you under the Apache License, Version 2.0 (the
8+ // "License"); you may not use this file except in compliance
9+ // with the License. You may obtain a copy of the License at
10+ //
11+ // http://www.apache.org/licenses/LICENSE-2.0
12+ //
13+ // Unless required by applicable law or agreed to in writing,
14+ // software distributed under the License is distributed on an
15+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+ // KIND, either express or implied. See the License for the
17+ // specific language governing permissions and limitations
18+ // under the License.
19+
20+ import Foundation
21+
22+ class StaticFileListReader : ListReader {
23+ private let list : [ URL ]
24+ init ( list: [ URL ] ) {
25+ self . list = list
26+ }
27+ func listFilesURLs( ) throws -> [ URL ] {
28+ list
29+ }
30+
31+ func canRead( ) -> Bool {
32+ true
33+ }
34+ }
Original file line number Diff line number Diff line change 1+ // Copyright (c) 2023 Spotify AB.
2+ //
3+ // Licensed to the Apache Software Foundation (ASF) under one
4+ // or more contributor license agreements. See the NOTICE file
5+ // distributed with this work for additional information
6+ // regarding copyright ownership. The ASF licenses this file
7+ // to you under the Apache License, Version 2.0 (the
8+ // "License"); you may not use this file except in compliance
9+ // with the License. You may obtain a copy of the License at
10+ //
11+ // http://www.apache.org/licenses/LICENSE-2.0
12+ //
13+ // Unless required by applicable law or agreed to in writing,
14+ // software distributed under the License is distributed on an
15+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+ // KIND, either express or implied. See the License for the
17+ // specific language governing permissions and limitations
18+ // under the License.
19+
20+ @testable import XCRemoteCache
21+ import XCTest
22+
23+ class StaticFileListReaderTests : XCTestCase {
24+ func testCanAlwaysRead( ) throws {
25+ let reader = StaticFileListReader ( list: [ ] )
26+
27+ XCTAssertTrue ( reader. canRead ( ) )
28+ }
29+
30+ func testListsPassedUrls( ) throws {
31+ let url : URL = " /file "
32+ let reader = StaticFileListReader ( list: [ url] )
33+
34+ XCTAssertEqual ( try reader. listFilesURLs ( ) , [ url] )
35+ }
36+ }
You can’t perform that action at this time.
0 commit comments