[][src]Module agnes::test_utils

Functions for generating sample data tables for tests.

Modules

dept_table

Type aliases defining what is contained within table $tbl_name.

emp_table

Type aliases defining what is contained within table $tbl_name.

extra_emp

Type aliases defining what is contained within table $tbl_name.

full_emp_table

Type aliases defining what is contained within table $tbl_name.

Functions

dept_table

Generates a department table with provided DeptIds and DeptNames in Vecs.

dept_table_from_field

Generates a department table with provided DeptIds and DeptNames in FieldData structs.

sample_dept_table

Generates sample department table (with fields DeptId, DeptName).

sample_emp_table

Generates basic sample employee table (with EmpId, DeptId, EmpName)

sample_emp_table_extra

Generates 'extra' data fields (SalaryOffset, DidTraining, VacationHrs) for employee table (for use in merge tests).

sample_emp_table_full

Generates 'full' employee table with all the fields from the basic employee table (EmpId, DeptId, EmpName) as well as the 'extra' fields (SalaryOffset, DidTraining, VacationHrs)

sample_merged_emp_table

Generates 'full' employee table merged from the basic employee table generated by sample_emp_table and the extra employee table generated by sample_emp_table_extra.