Class: DatadogAPIClient::V2::GetMultipleRulesetsResponseDataAttributesRulesetsItemsRulesItemsTestsItems

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_rules_items_tests_items.rb

Overview

A test case associated with a static analysis rule, containing the source code and expected annotation count.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_propertiesObject

Returns the value of attribute additional_properties.



33
34
35
# File 'lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_rules_items_tests_items.rb', line 33

def additional_properties
  @additional_properties
end

#annotation_countObject

The expected number of annotations (findings) the rule should produce when run against the test code.



25
26
27
# File 'lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_rules_items_tests_items.rb', line 25

def annotation_count
  @annotation_count
end

#codeObject

The source code snippet used as input for the rule test.



28
29
30
# File 'lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_rules_items_tests_items.rb', line 28

def code
  @code
end

#filenameObject

The filename associated with the test code snippet.



31
32
33
# File 'lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_rules_items_tests_items.rb', line 31

def filename
  @filename
end