Skip to contents

Get a list of specified attributes from a list of mock objects.

Usage

get_list_of_mock_attribute(list_mock_obj, attr = "init")

Arguments

list_mock_obj

List of mock objects.

attr

Name of the attribute to extract.

Value

A list containing the values of the specified attribute for each mock object.

Examples

if (FALSE) {
l_mock_obj <- list(mock_data_1, mock_data_2)
get_list_of_mock_attribute(l_mock_obj)
}