Differences Between: [Versions 310 and 400] [Versions 39 and 400]
Unit tests for Random allocation
Copyright: | 2009 David Mudrak <david.mudrak@gmail.com> |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 334 lines (14 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
allocator_test:: (19 methods):
setUp()
tearDown()
test_self_allocation_empty_values()
test_self_allocation_equal_user_groups()
test_self_allocation_different_user_groups()
test_self_allocation_skip_existing()
test_get_author_ids()
test_index_submissions_by_authors()
test_index_submissions_by_authors_duplicate_author()
test_get_unique_allocations()
test_get_unkept_assessments_no_keep_selfassessments()
test_get_unkept_assessments_keep_selfassessments()
test_convert_assessments_to_links()
test_convert_assessments_to_links_empty()
test_get_element_with_lowest_workload_deterministic()
test_get_element_with_lowest_workload_impossible()
test_get_element_with_lowest_workload_random()
test_get_element_with_lowest_workload_random_floats()
test_filter_current_assessments()
testable_workshop_random_allocator:: (8 methods):
self_allocation()
get_author_ids()
index_submissions_by_authors()
get_unique_allocations()
get_unkept_assessments()
convert_assessments_to_links()
get_element_with_lowest_workload()
filter_current_assessments()
Class: allocator_test - X-Ref
Unit tests for Random allocationsetUp() X-Ref |
No description |
tearDown() X-Ref |
No description |
test_self_allocation_empty_values() X-Ref |
No description |
test_self_allocation_equal_user_groups() X-Ref |
No description |
test_self_allocation_different_user_groups() X-Ref |
No description |
test_self_allocation_skip_existing() X-Ref |
No description |
test_get_author_ids() X-Ref |
No description |
test_index_submissions_by_authors() X-Ref |
No description |
test_index_submissions_by_authors_duplicate_author() X-Ref |
No description |
test_get_unique_allocations() X-Ref |
No description |
test_get_unkept_assessments_no_keep_selfassessments() X-Ref |
No description |
test_get_unkept_assessments_keep_selfassessments() X-Ref |
No description |
test_convert_assessments_to_links() X-Ref |
Aggregates assessment info per author and per reviewer |
test_convert_assessments_to_links_empty() X-Ref |
Trivial case |
test_get_element_with_lowest_workload_deterministic() X-Ref |
If there is a single element with the lowest workload, it should be chosen |
test_get_element_with_lowest_workload_impossible() X-Ref |
If there are no elements available, must return false |
test_get_element_with_lowest_workload_random() X-Ref |
If there are several elements with the lowest workload, one of them should be chosen randomly |
test_get_element_with_lowest_workload_random_floats() X-Ref |
Floats should be rounded before they are compared This should test |
test_filter_current_assessments() X-Ref |
Filter new assessments so they do not contain existing |
Class: testable_workshop_random_allocator - X-Ref
Make protected methods we want to test publicself_allocation($authors=array() X-Ref |
No description |
get_author_ids($newallocations) X-Ref |
No description |
index_submissions_by_authors($submissions) X-Ref |
No description |
get_unique_allocations($newallocations) X-Ref |
No description |
get_unkept_assessments($assessments, $newallocations, $keepselfassessments) X-Ref |
No description |
convert_assessments_to_links($assessments) X-Ref |
No description |
get_element_with_lowest_workload($workload) X-Ref |
No description |
filter_current_assessments(&$newallocations, $assessments) X-Ref |
No description |