Home > The Unit Test Framework > User's guide > Test organization > Test case template >
PrevNext

Test case template

To test a template based component it's frequently necessary to perform the same set of checks for a component instantiated with different template parameters. The UTF provides the ability to create a series of test cases based on a list of desired types and function similar to nullary function template. This facility is called test case template. Here are the two construction interfaces:
要測試基於模板的組件,通常需要對用不同模板參數實例化的組件進行相同的一組檢查。 UTF 提供了基於需要的類型序列和類似於無參函數模板的函數創建一組測試用例的能力。 這個工具被稱為測試用例模板。有兩種構造接口:


PrevUpHomeNext