id: 1 unit: func testAllSubscriptionsCancelledShouldDisconnectTheWebsocket2() file: AppSyncRealTimeClientIntegrationTests/AppSyncRealTimeClientIntegrationTests.swift start line: 72 end line: 153 size: 75 LOC McCabe index: 17 number of parameters: 0 id: 2 unit: func testAddRemoveListeners() file: AppSyncRealTimeClientTests/ConnectionProvider/ConnectionProviderTests.swift start line: 70 end line: 125 size: 42 LOC McCabe index: 2 number of parameters: 0 id: 3 unit: func testReceiveValidData() file: AppSyncRealTimeClientTests/Connection/AppSyncSubscriptionConnectionTests.swift start line: 194 end line: 233 size: 35 LOC McCabe index: 6 number of parameters: 0 id: 4 unit: func testServiceOverridesStaleConnectionTimeout() file: AppSyncRealTimeClientTests/ConnectionProvider/ConnectionProviderTests.swift start line: 184 end line: 226 size: 34 LOC McCabe index: 1 number of parameters: 0 id: 5 unit: func testServiceOverridesStaleConnectionTimeout() file: AppSyncRealTimeClientTests/ConnectionProvider/ConnectionProviderStaleConnectionTests.swift start line: 21 end line: 63 size: 34 LOC McCabe index: 1 number of parameters: 0 id: 6 unit: func testUnSubscribeConnection() file: AppSyncRealTimeClientTests/Connection/AppSyncSubscriptionConnectionTests.swift start line: 72 end line: 106 size: 32 LOC McCabe index: 7 number of parameters: 0 id: 7 unit: func testSubscribeWithSubscriptionConnection() file: AppSyncRealTimeClientIntegrationTests/AppSyncRealTimeClientIntegrationTests.swift start line: 22 end line: 54 size: 31 LOC McCabe index: 7 number of parameters: 0 id: 8 unit: func handleDataEvent() file: AppSyncRealTimeClient/Connection/AppSyncConnection/AppSyncSubscriptionConnection+DataHandler.swift start line: 12 end line: 44 size: 31 LOC McCabe index: 6 number of parameters: 1 id: 9 unit: func testSuccessfulConnection() file: AppSyncRealTimeClientTests/ConnectionProvider/ConnectionProviderTests.swift start line: 22 end line: 60 size: 29 LOC McCabe index: 1 number of parameters: 0 id: 10 unit: func testConnectionError() file: AppSyncRealTimeClientTests/ConnectionProvider/ConnectionProviderTests.swift start line: 136 end line: 174 size: 29 LOC McCabe index: 1 number of parameters: 0 id: 11 unit: func handleEvent() file: AppSyncRTCSample/AppSyncRTCProvider.swift start line: 93 end line: 125 size: 29 LOC McCabe index: 7 number of parameters: 1 id: 12 unit: func testNotConnectedEventDuringSubscribe() file: AppSyncRealTimeClientTests/Connection/AppSyncSubscriptionConnectionTests.swift start line: 154 end line: 184 size: 27 LOC McCabe index: 6 number of parameters: 0 id: 13 unit: func testNilDataInVariables() file: AppSyncRealTimeClientTests/Connection/AppSyncSubscriptionConnectionTests.swift start line: 235 end line: 264 size: 27 LOC McCabe index: 6 number of parameters: 0 id: 14 unit: init() file: AppSyncRTCSample/AppSyncRTCProvider.swift start line: 51 end line: 80 size: 27 LOC McCabe index: 1 number of parameters: 0 id: 15 unit: func handleError() file: AppSyncRealTimeClient/Connection/AppSyncConnection/AppSyncSubscriptionConnection+ErrorHandler.swift start line: 12 end line: 44 size: 27 LOC McCabe index: 4 number of parameters: 1 id: 16 unit: func testSubscriptionConnection() file: AppSyncRealTimeClientTests/Connection/AppSyncSubscriptionConnectionTests.swift start line: 34 end line: 62 size: 26 LOC McCabe index: 6 number of parameters: 0 id: 17 unit: func testInvalidConnection() file: AppSyncRealTimeClientTests/Connection/AppSyncSubscriptionConnectionTests.swift start line: 116 end line: 144 size: 26 LOC McCabe index: 6 number of parameters: 0 id: 18 unit: func testSubscribeUnsubscribeRepeat() file: AppSyncRealTimeClientIntegrationTests/AppSyncRealTimeClientIntegrationTests.swift start line: 169 end line: 194 size: 25 LOC McCabe index: 3 number of parameters: 0 id: 19 unit: func testMultipleThreadsSubscribeUnsubscribe() file: AppSyncRealTimeClientIntegrationTests/AppSyncRealTimeClientIntegrationTests.swift start line: 196 end line: 220 size: 25 LOC McCabe index: 1 number of parameters: 0 id: 20 unit: func subscribe() file: AppSyncRTCSample/AppSyncRTCProvider.swift start line: 127 end line: 153 size: 24 LOC McCabe index: 2 number of parameters: 0 id: 21 unit: func testTimerResets() file: AppSyncRealTimeClientTests/Support/CountdownTimerTests.swift start line: 109 end line: 139 size: 23 LOC McCabe index: 1 number of parameters: 0 id: 22 unit: func testTimerFiresOnSchedule() file: AppSyncRealTimeClientTests/Support/CountdownTimerTests.swift start line: 68 end line: 91 size: 19 LOC McCabe index: 1 number of parameters: 0 id: 23 unit: func testConnectDisconnect() file: AppSyncRealTimeClientIntegrationTests/StarscreamAdapterTests.swift start line: 14 end line: 32 size: 19 LOC McCabe index: 1 number of parameters: 0 id: 24 unit: func unsubscribe() file: AppSyncRTCSample/AppSyncRTCProvider.swift start line: 155 end line: 171 size: 17 LOC McCabe index: 1 number of parameters: 0 id: 25 unit: func scene() file: AppSyncRTCSample/SceneDelegate.swift start line: 16 end line: 37 size: 13 LOC McCabe index: 2 number of parameters: 3 id: 26 unit: func handleConnectionEvent() file: AppSyncRealTimeClient/Connection/AppSyncConnection/AppSyncSubscriptionConnection+Connection.swift start line: 11 end line: 24 size: 12 LOC McCabe index: 4 number of parameters: 1 id: 27 unit: func toAppSyncResponseType() file: AppSyncRealTimeClient/ConnectionProvider/AppsyncRealtimeConnection/RealtimeConnectionProvider+Websocket.swift start line: 148 end line: 159 size: 12 LOC McCabe index: 4 number of parameters: 0 id: 28 unit: func testInterceptRequest() file: AppSyncRealTimeClientTests/Interceptor/APIKeyAuthInterceptorTests.swift start line: 19 end line: 30 size: 11 LOC McCabe index: 1 number of parameters: 0 id: 29 unit: func testInterceptRequest() file: AppSyncRealTimeClientTests/Interceptor/OIDCAuthInterceptorTests.swift start line: 19 end line: 30 size: 11 LOC McCabe index: 1 number of parameters: 0 id: 30 unit: func testStandardDomainInterceptRequest() file: AppSyncRealTimeClientTests/Support/RealtimeGatewayURLInterceptorTests.swift start line: 19 end line: 29 size: 11 LOC McCabe index: 1 number of parameters: 0 id: 31 unit: func testCustomDomainInterceptRequest() file: AppSyncRealTimeClientTests/Support/RealtimeGatewayURLInterceptorTests.swift start line: 31 end line: 41 size: 11 LOC McCabe index: 1 number of parameters: 0 id: 32 unit: func testTimerFiresOnBackgroundQueue() file: AppSyncRealTimeClientTests/Support/CountdownTimerTests.swift start line: 35 end line: 45 size: 11 LOC McCabe index: 1 number of parameters: 0 id: 33 unit: func updateCallback() file: AppSyncRealTimeClient/ConnectionProvider/AppsyncRealtimeConnection/RealtimeConnectionProvider.swift start line: 153 end line: 163 size: 11 LOC McCabe index: 1 number of parameters: 1 id: 34 unit: func getValue() file: AppSyncRealTimeClient/ConnectionProvider/AppSyncMessage.swift start line: 59 end line: 68 size: 10 LOC McCabe index: 4 number of parameters: 0 id: 35 unit: func scene() file: HostApp/SceneDelegate.swift start line: 16 end line: 31 size: 9 LOC McCabe index: 2 number of parameters: 3 id: 36 unit: func startStaleConnectionTimer() file: AppSyncRealTimeClient/ConnectionProvider/AppsyncRealtimeConnection/RealtimeConnectionProvider+StaleConnection.swift start line: 13 end line: 21 size: 9 LOC McCabe index: 2 number of parameters: 0 id: 37 unit: func testConcurrency() file: AppSyncRealTimeClientTests/Support/CountdownTimerTests.swift start line: 142 end line: 149 size: 8 LOC McCabe index: 1 number of parameters: 0 id: 38 unit: func connect() file: AppSyncRealTimeClient/ConnectionProvider/ConnectionProvider.swift start line: 12 end line: 25 size: 8 LOC McCabe index: 1 number of parameters: 0 id: 39 unit: func resetCountdown() file: AppSyncRealTimeClient/Support/CountdownTimer.swift start line: 32 end line: 39 size: 8 LOC McCabe index: 1 number of parameters: 0 id: 40 unit: func testTimerDoesNotFireEarly() file: AppSyncRealTimeClientTests/Support/CountdownTimerTests.swift start line: 27 end line: 33 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 41 unit: func testTimerDoesNotFireAfterInvalidate() file: AppSyncRealTimeClientTests/Support/CountdownTimerTests.swift start line: 47 end line: 53 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 42 unit: func application() file: AppSyncRTCSample/AppDelegate.swift start line: 15 end line: 25 size: 7 LOC McCabe index: 1 number of parameters: 2 id: 43 unit: func application() file: AppSyncRTCSample/AppDelegate.swift start line: 29 end line: 37 size: 7 LOC McCabe index: 1 number of parameters: 3 id: 44 unit: func write() file: AppSyncRealTimeClient/ConnectionProvider/ConnectionProvider.swift start line: 14 end line: 25 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 45 unit: func invalidate() file: AppSyncRealTimeClient/Support/CountdownTimer.swift start line: 42 end line: 48 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 46 unit: func testInterceptMessage() file: AppSyncRealTimeClientTests/Interceptor/APIKeyAuthInterceptorTests.swift start line: 32 end line: 38 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 47 unit: func testInterceptMessage() file: AppSyncRealTimeClientTests/Interceptor/OIDCAuthInterceptorTests.swift start line: 32 end line: 38 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 48 unit: func testJSONParsing() file: AppSyncRealTimeClientTests/Interceptor/AppSyncJSONHelperTests.swift start line: 21 end line: 26 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 49 unit: func testInValidJSONParsing() file: AppSyncRealTimeClientTests/Interceptor/AppSyncJSONHelperTests.swift start line: 36 end line: 41 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 50 unit: func testTimerFires() file: AppSyncRealTimeClientTests/Support/CountdownTimerTests.swift start line: 20 end line: 25 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 51 unit: func toAppSyncResponse() file: AppSyncRealTimeClient/ConnectionProvider/AppsyncRealtimeConnection/RealtimeConnectionProvider+Websocket.swift start line: 138 end line: 143 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 52 unit: func disconnect() file: AppSyncRealTimeClient/ConnectionProvider/ConnectionProvider.swift start line: 16 end line: 25 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 53 unit: init() file: AppSyncRealTimeClient/Support/CountdownTimer.swift start line: 24 end line: 29 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 54 unit: func testURLStandardAppSyncDomain() file: AppSyncRealTimeClientTests/Interceptor/AppSyncURLHelperTests.swift start line: 18 end line: 22 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 55 unit: func testURLStandardAppSyncDomainCaseInsensitive() file: AppSyncRealTimeClientTests/Interceptor/AppSyncURLHelperTests.swift start line: 29 end line: 33 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 56 unit: func testURLCustomAppSyncDomain() file: AppSyncRealTimeClientTests/Interceptor/AppSyncURLHelperTests.swift start line: 40 end line: 44 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 57 unit: func application() file: AppSyncRTCSample/AppDelegate.swift start line: 39 end line: 48 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 58 unit: init() file: AppSyncRealTimeClient/Interceptor/APIKeyAuthInterceptor.swift start line: 86 end line: 90 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 59 unit: func stopStaleConnectionTimer() file: AppSyncRealTimeClient/ConnectionProvider/AppsyncRealtimeConnection/RealtimeConnectionProvider+StaleConnection.swift start line: 24 end line: 28 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 60 unit: func addListener() file: AppSyncRealTimeClient/ConnectionProvider/ConnectionProvider.swift start line: 18 end line: 25 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 61 unit: func sceneWillResignActive() file: AppSyncRTCSample/SceneDelegate.swift start line: 53 end line: 58 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 62 unit: func applicationWillResignActive() file: AppSyncRTCSample/AppDelegate.swift start line: 50 end line: 53 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 63 unit: func applicationDidEnterBackground() file: AppSyncRTCSample/AppDelegate.swift start line: 55 end line: 58 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 64 unit: init() file: AppSyncRealTimeClient/Interceptor/OIDCAuthInterceptor.swift start line: 82 end line: 85 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 65 unit: func connect() file: AppSyncRealTimeClient/Websocket/AppSyncWebsocketProvider.swift start line: 17 end line: 27 size: 4 LOC McCabe index: 1 number of parameters: 3 id: 66 unit: func resetStaleConnectionTimer() file: AppSyncRealTimeClient/ConnectionProvider/AppsyncRealtimeConnection/RealtimeConnectionProvider+StaleConnection.swift start line: 31 end line: 34 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 67 unit: func sendConnectionInitMessage() file: AppSyncRealTimeClient/ConnectionProvider/AppsyncRealtimeConnection/RealtimeConnectionProvider.swift start line: 144 end line: 147 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 68 unit: func addInterceptor() file: AppSyncRealTimeClient/ConnectionProvider/InterceptableConnection.swift start line: 16 end line: 21 size: 4 LOC McCabe index: 2 number of parameters: 1 id: 69 unit: func addInterceptor() file: AppSyncRealTimeClient/ConnectionProvider/InterceptableConnection.swift start line: 23 end line: 28 size: 4 LOC McCabe index: 2 number of parameters: 1 id: 70 unit: func removeListener() file: AppSyncRealTimeClient/ConnectionProvider/ConnectionProvider.swift start line: 20 end line: 25 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 71 unit: func application() file: HostApp/AppDelegate.swift start line: 15 end line: 18 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 72 unit: func application() file: HostApp/AppDelegate.swift start line: 22 end line: 26 size: 3 LOC McCabe index: 1 number of parameters: 3 id: 73 unit: func getLatestAuthToken() file: AppSyncRealTimeClientTests/Interceptor/OIDCAuthInterceptorTests.swift start line: 42 end line: 44 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 74 unit: func disconnect() file: AppSyncRTCSample/AppSyncRTCProvider.swift start line: 173 end line: 175 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 75 unit: func addRetryHandler() file: AppSyncRealTimeClient/Connection/RetryableConnection.swift start line: 16 end line: 21 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 76 unit: func shouldRetryRequest() file: AppSyncRealTimeClient/Connection/RetryableConnection.swift start line: 25 end line: 29 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 77 unit: func disconnect() file: AppSyncRealTimeClient/Websocket/AppSyncWebsocketProvider.swift start line: 20 end line: 27 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 78 unit: func interceptConnection() file: AppSyncRealTimeClient/ConnectionProvider/InterceptableConnection.swift start line: 18 end line: 21 size: 3 LOC McCabe index: 2 number of parameters: 2 id: 79 unit: func interceptMessage() file: AppSyncRealTimeClient/ConnectionProvider/InterceptableConnection.swift start line: 25 end line: 28 size: 3 LOC McCabe index: 2 number of parameters: 2 id: 80 unit: func interceptConnection() file: AppSyncRealTimeClient/ConnectionProvider/InterceptableConnection.swift start line: 30 end line: 33 size: 3 LOC McCabe index: 2 number of parameters: 2 id: 81 unit: func sceneDidDisconnect() file: HostApp/SceneDelegate.swift start line: 33 end line: 38 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 82 unit: func sceneDidBecomeActive() file: HostApp/SceneDelegate.swift start line: 40 end line: 43 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 83 unit: func sceneWillResignActive() file: HostApp/SceneDelegate.swift start line: 45 end line: 48 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 84 unit: func sceneWillEnterForeground() file: HostApp/SceneDelegate.swift start line: 50 end line: 53 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 85 unit: func sceneDidEnterBackground() file: HostApp/SceneDelegate.swift start line: 55 end line: 59 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 86 unit: func application() file: HostApp/AppDelegate.swift start line: 28 end line: 32 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 87 unit: func sceneDidDisconnect() file: AppSyncRTCSample/SceneDelegate.swift start line: 39 end line: 45 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 88 unit: func sceneDidBecomeActive() file: AppSyncRTCSample/SceneDelegate.swift start line: 47 end line: 51 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 89 unit: func sceneWillEnterForeground() file: AppSyncRTCSample/SceneDelegate.swift start line: 60 end line: 63 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 90 unit: func sceneDidEnterBackground() file: AppSyncRTCSample/SceneDelegate.swift start line: 65 end line: 69 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 91 unit: func write() file: AppSyncRealTimeClient/Websocket/AppSyncWebsocketProvider.swift start line: 24 end line: 27 size: 2 LOC McCabe index: 1 number of parameters: 1