WP_Test_WP_Job_Manager_Geocode A

Total Complexity 51
Dependencies 2
Dependents 0
Total lines 434
Lines of code 312
Logical lines of code 140
Comment lines 87
Methods 27
Properties 0

Methods 27

Method Rating Maintainability Complexity Lines of code
test_get_location_data_simple_live()
S
55 7 18
test_get_location_data_simple_local()
S
56 7 17
set_expected_responses()
S
52 5 26
check_test_data()
S
60 6 11
test_save_location_data()
S
54 2 21
get_valid_location_data()
S
53 1 28
get_other_valid_location_data()
S
53 1 28
get_invalid_location_data()
S
56 1 20
test_add_geolocation_endpoint_query_args()
S
57 1 16
use_live_google_api()
S
71 2 6
get_google_maps_api_key()
S
71 2 6
build_geocode_url()
S
61 1 12
test_change_location_data()
S
61 1 12
test_update_location_data_disabled()
S
62 1 11
test_has_location_data_nope()
S
72 1 5
test_update_location_data()
S
66 1 8
get_location_data()
S
72 1 6
test_update_location_data_not_set()
S
68 1 7
helper_add_api_key()
S
82 1 3
test_generate_location_data()
S
70 1 6
helper_add_region_cctld()
S
82 1 3
test_get_location_data_error_live()
S
72 1 5
test_wp_job_manager_api_instance()
S
72 1 5
test_get_google_maps_api_key()
S
68 1 7
test_has_location_data()
S
63 1 10
test_clear_location_data()
S
65 1 9
setUp()
S
70 1 6