Canpar Shipping Quotes - 7.x-1.x

Test status
StatusResult
Last receivedSun, 02/26/2012 - 02:16:36
Last requestedSun, 02/26/2012 - 02:17:03
Last testedSun, 02/26/2012 - 02:18:13
Test count14
Environment status
MySQLpass
Code reviewfail
Overall Resultpass
Branch information
Identifier7.x-1.x
ProjectCanpar Shipping Quotes
LinkProject information
SummaryPASSED: [[Coder]]: [Code review] 9 minor(s), 0 critical(s), and 10 normal(s); [[SimpleTest]]: [MySQL] 20 pass(es).
Details

MySQL

  1. Setup environment
  2. Detect an invalid patch URL
  3. Detect invalid repository information
  4. Detect invalid patch format
  5. Detect a non-applicable patch
  6. Detect invalid PHP syntax
  7. Detect a Drupal installation failure
  8. Detect a test run failure
  9. Detect a failing test
  10. Complete test suite with all tests passing
20 pass(es), 0 fail(s), and 0 exception(s)
Test namePassFailException
ExpandCanpar (CanparUnitTestCase) [Canpar]2000
MessageGroupFilenameLineFunctionStatus
array ( 'CanparShipment' => array ( 'ServiceType' => '1', 'Quantity' => '1', 'Unit' => 'L', 'Weight' => '10', 'Origin' => 'M4X1W7', 'Destination' => 'L4Y2N9', 'COD' => '100.00', 'Declared' => '200.00', 'PUT' => 'No', 'ExtraCare' => '1.00', 'ShippingDate' => '2012-02-25', ), 'CanparCharges' => array ( 'BaseRate' => '9.89', 'ExtraCareCharge' => '10.00', 'CODCharge' => '4.50', ), 'TransitTime' => array ( 0 => '1', ), 'EstimatedDeliveryDate' => array ( 0 => '2012-02-28', ), )Debuguc_canpar.test101CanparUnitTestCase->testBaseRate()
SimpleXMLElement::__set_state(array( 'CanparShipment' => SimpleXMLElement::__set_state(array( 'COD' => '100.00', 'Declared' => '200.00', 'Origin' => 'M4X1W7', 'Destination' => 'L4Y2N9', 'ExtraCare' => '1.00', 'PUT' => 'No', 'Quantity' => '1', 'ServiceType' => '1', 'Weight' => '10', 'Unit' => 'L', 'ShippingDate' => '2012-02-25', )), 'CanparCharges' => SimpleXMLElement::__set_state(array( 'BaseRate' => '9.89', 'ExtraCareCharge' => '10.00', 'CODCharge' => '4.50', )), 'TransitTime' => '1', 'EstimatedDeliveryDate' => '2012-02-28', ))Debuguc_canpar.test102CanparUnitTestCase->testBaseRate()
array ( 'weight' => '20.0', 'weight_unit' => 'lb', 'zone' => '1', 'transit_time' => '1', 'transit_time_guaranteed' => 'false', 'estimated_delivery_date' => '2012-02-28', 'base_charge' => '17.39', 'freight_charge' => '17.39', 'net_charge' => '17.39', 'fuel_surcharge_rate' => '15.55', 'fuel_surcharge' => '2.70', 'subtotal_charge' => '20.09', 'on_hst_charge' => '2.61', 'total_charge' => '22.70', )Debuguc_canpar.test183CanparUnitTestCase->testCustomRate()
SimpleXMLElement::__set_state(array( 'rate' => SimpleXMLElement::__set_state(array( '@attributes' => array ( 'weight' => '20.0', 'weight_unit' => 'lb', 'zone' => '1', 'transit_time' => '1', 'transit_time_guaranteed' => 'false', 'estimated_delivery_date' => '2012-02-28', 'base_charge' => '17.39', 'freight_charge' => '17.39', 'net_charge' => '17.39', 'fuel_surcharge_rate' => '15.55', 'fuel_surcharge' => '2.70', 'subtotal_charge' => '20.09', 'on_hst_charge' => '2.61', 'total_charge' => '22.70', ), )), ))Debuguc_canpar.test184CanparUnitTestCase->testCustomRate()

Code review

  1. Setup environment
  2. Detect an invalid patch URL
  3. Detect invalid repository information
  4. Detect invalid patch format
  5. Detect a non-applicable patch
  6. Detect invalid PHP syntax
  7. Detect a review run failure
  8. Detect coder flags
    Ensure that your code follows the Drupal standard and passes a coder review.
  9. Complete coder review with all passed
9 minor(s), 0 critical(s), and 10 normal(s)

Non-pass

Test nameMinorCriticalNormal
Expandtests/uc_canpar.test001
MessageGroupFilenameLineFunctionStatus
Use sentence case, not title case, for end-user strings. (Wikipedia)Otheruc_canpar.test16N/A
Expanduc_canpar.install001
MessageGroupFilenameLineFunctionStatus
Use the matching Drupal theme functions, not raw HTML.Otheruc_canpar.install24N/A
Expanduc_canpar.module908
MessageGroupFilenameLineFunctionStatus
Administrative menu items should have a description.Otheruc_canpar.module17N/A
put a space between the asterisk and the comment textOtheruc_canpar.module32N/A
Use sentence case, not title case, for end-user strings. (Wikipedia)Otheruc_canpar.module44N/A
put a space between the asterisk and the comment textOtheruc_canpar.module80N/A
Use an indent of 2 spaces, with no tabsOtheruc_canpar.module161N/A
Use an indent of 2 spaces, with no tabsOtheruc_canpar.module207N/A
Use an indent of 2 spaces, with no tabsOtheruc_canpar.module210N/A
Use an indent of 2 spaces, with no tabsOtheruc_canpar.module211N/A
in most cases, replace the string function with the drupal_ equivalent string functionsOtheruc_canpar.module275N/A
Use an indent of 2 spaces, with no tabsOtheruc_canpar.module290N/A
Use an indent of 2 spaces, with no tabsOtheruc_canpar.module291N/A
Use sentence case, not title case, for end-user strings. (Wikipedia)Otheruc_canpar.module399N/A
Use sentence case, not title case, for end-user strings. (Wikipedia)Otheruc_canpar.module400N/A
Use sentence case, not title case, for end-user strings. (Wikipedia)Otheruc_canpar.module401N/A
Use sentence case, not title case, for end-user strings. (Wikipedia)Otheruc_canpar.module403N/A
Use sentence case, not title case, for end-user strings. (Wikipedia)Otheruc_canpar.module404N/A
Use sentence case, not title case, for end-user strings. (Wikipedia)Otheruc_canpar.module405N/A

All

Test nameMinorCriticalNormal
Expandtests/uc_canpar.test001
MessageGroupFilenameLineFunctionStatus
Use sentence case, not title case, for end-user strings. (Wikipedia)Otheruc_canpar.test16N/A
Leafuc_canpar.admin.inc000
Expanduc_canpar.install001
MessageGroupFilenameLineFunctionStatus
Use the matching Drupal theme functions, not raw HTML.Otheruc_canpar.install24N/A
Expanduc_canpar.module908
MessageGroupFilenameLineFunctionStatus
Administrative menu items should have a description.Otheruc_canpar.module17N/A
put a space between the asterisk and the comment textOtheruc_canpar.module32N/A
Use sentence case, not title case, for end-user strings. (Wikipedia)Otheruc_canpar.module44N/A
put a space between the asterisk and the comment textOtheruc_canpar.module80N/A
Use an indent of 2 spaces, with no tabsOtheruc_canpar.module161N/A
Use an indent of 2 spaces, with no tabsOtheruc_canpar.module207N/A
Use an indent of 2 spaces, with no tabsOtheruc_canpar.module210N/A
Use an indent of 2 spaces, with no tabsOtheruc_canpar.module211N/A
in most cases, replace the string function with the drupal_ equivalent string functionsOtheruc_canpar.module275N/A
Use an indent of 2 spaces, with no tabsOtheruc_canpar.module290N/A
Use an indent of 2 spaces, with no tabsOtheruc_canpar.module291N/A
Use sentence case, not title case, for end-user strings. (Wikipedia)Otheruc_canpar.module399N/A
Use sentence case, not title case, for end-user strings. (Wikipedia)Otheruc_canpar.module400N/A
Use sentence case, not title case, for end-user strings. (Wikipedia)Otheruc_canpar.module401N/A
Use sentence case, not title case, for end-user strings. (Wikipedia)Otheruc_canpar.module403N/A
Use sentence case, not title case, for end-user strings. (Wikipedia)Otheruc_canpar.module404N/A
Use sentence case, not title case, for end-user strings. (Wikipedia)Otheruc_canpar.module405N/A