BlockonomicsTest S

Total Complexity 46
Dependencies 6
Dependents 0
Total lines 528
Lines of code 406
Logical lines of code 203
Comment lines 65
Methods 31
Properties 0

Methods 31

Method Rating Maintainability Complexity Lines of code
setUp()
A
43 8 53
getMockResponse()
S
47 5 42
mockActiveCurrencies()
S
58 4 16
testExamineServerCallbackUrlsWithNoMatch()
S
52 1 25
testExamineServerCallbackUrlsNoMatchNoEmptyCallback()
S
52 1 25
testUpdateCallbackWithInvalidResponse()
S
56 1 18
testUpdateCallbackForBTC()
S
56 1 18
testUpdateCallbackForBCH()
S
56 1 18
testGetSupportedCurrencies()
S
59 1 16
mockGetCallbacks()
S
67 2 8
testCalculateTotalPaidFiatWithVariousTransactions()
S
61 1 13
testBTCandBCHWithOneStoreNoCallback()
S
61 1 13
testCheckCallbackUrlsOrSetOne()
S
62 1 12
mockUpdateCallbackResponse()
S
64 1 11
testBTCandBCHWithNoStore()
S
67 1 7
testCheckCallbackUrlsOrSetOneWithError()
S
65 1 9
testBCHWithOneStoreNoCallback()
S
66 1 9
testBTCWithOneStoreNoCallback()
S
66 1 9
testBTCWithIncorrectAPIKeySetup()
S
68 1 7
testBTCWithNoStore()
S
68 1 7
testBCHWithNoStore()
S
68 1 7
testBTCandBCHWithIncorrectAPIKeySetup()
S
67 1 7
testCalculateTotalPaidFiatWithNoTransactions()
S
65 1 9
testBCHWithIncorrectAPIKeySetup()
S
68 1 7
testSetHeadersWithNonEmptyApiKey()
S
64 1 9
testSetHeadersWithEmptyApiKey()
S
67 1 7
testGetCryptoPaymentUriForBCH()
S
68 1 7
testGetCryptoPaymentUriForBTC()
S
68 1 7
testFixDisplayingSmallValuesGreaterThan10000()
S
79 1 3
testFixDisplayingSmallValuesLessThan10000()
S
79 1 3
tearDown()
S
78 1 4