Moodle  2.2.1
http://www.collinsharper.com
workshop_allocation_random_test Class Reference
Inheritance diagram for workshop_allocation_random_test:
Collaboration diagram for workshop_allocation_random_test:

Public Member Functions

 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 ()

Protected Attributes

 $workshop
 $allocator

Detailed Description

Definition at line 63 of file testallocator.php.


Member Function Documentation

setUp ( )

Definition at line 71 of file testallocator.php.

tearDown ( )

Definition at line 80 of file testallocator.php.

Aggregates assessment info per author and per reviewer

Definition at line 198 of file testallocator.php.

Here is the call graph for this function:

Trivial case

Definition at line 215 of file testallocator.php.

Here is the call graph for this function:

Filter new assessments so they do not contain existing

Definition at line 303 of file testallocator.php.

Here is the call graph for this function:

Definition at line 121 of file testallocator.php.

Here is the call graph for this function:

If there is a single element with the lowest workload, it should be chosen

Definition at line 228 of file testallocator.php.

Here is the call graph for this function:

If there are no elements available, must return false

Definition at line 240 of file testallocator.php.

Here is the call graph for this function:

If there are several elements with the lowest workload, one of them should be chosen randomly

Definition at line 252 of file testallocator.php.

Here is the call graph for this function:

Floats should be rounded before they are compared

This should test

Definition at line 280 of file testallocator.php.

Here is the call graph for this function:

Definition at line 155 of file testallocator.php.

Here is the call graph for this function:

Definition at line 179 of file testallocator.php.

Here is the call graph for this function:

Definition at line 164 of file testallocator.php.

Here is the call graph for this function:

Definition at line 128 of file testallocator.php.

Here is the call graph for this function:

Definition at line 143 of file testallocator.php.

Here is the call graph for this function:

Definition at line 100 of file testallocator.php.

Here is the call graph for this function:

Definition at line 85 of file testallocator.php.

Here is the call graph for this function:

Definition at line 90 of file testallocator.php.

Here is the call graph for this function:

Definition at line 110 of file testallocator.php.

Here is the call graph for this function:


Field Documentation

$allocator [protected]

allocator instance

Definition at line 69 of file testallocator.php.

$workshop [protected]

workshop instance emulation

Definition at line 66 of file testallocator.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations