afv-library/skills/platform-data-and-tooling-api-context-get/assets/tooling_api/ApexCodeCoverage.json

54 lines
4.1 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"sections": [
"title",
"description",
"supported_soap_calls",
"supported_rest_api_http_methods",
"fields",
"special_access_rules",
"wsdl_segment"
],
"title": "ApexCodeCoverage - Tooling API",
"description": "Represents code coverage test results for an Apex class or trigger. Available in Tooling API version 29.0 and later.",
"supported_soap_calls": "`describeSObjects()`, `query()`, `retrieve()`",
"supported_rest_api_http_methods": "`Query`, `GET`",
"fields_columns": [
"type",
"properties",
"description"
],
"fields": {
"ApexTestClassId": {
"type": "string",
"properties": "Filter, Group, Sort",
"description": "The ID of the test class."
},
"TestMethodName": {
"type": "string",
"properties": "Filter, Group, Sort",
"description": "The name of the test method."
},
"ApexClassorTriggerId": {
"type": "string",
"properties": "Filter, Group, Sort",
"description": "The ID of the class or trigger under test."
},
"NumLinesCovered": {
"type": "int",
"properties": "Filter, Group, Sort",
"description": "The number of covered lines."
},
"NumLinesUncovered": {
"type": "int",
"properties": "Filter, Group, Sort",
"description": "The number of uncovered lines."
},
"Coverage": {
"type": "complexvalue",
"properties": "None",
"description": "Two lists of integers. The first is the covered lines, and the second is the list of uncovered lines. If a line is missing from both lists, the line isnt executable and doesnt require coverage. Coverage includes these fields: coveredLines namespace uncoveredLines"
}
},
"special_access_rules": "In API version 49.0 and later, users must have the View Setup and Configuration and View All Data permissions to access this object.",
"wsdl_segment": "```xml\n<xsd:complexType name=\"ApexCodeCoverage\">\n <xsd:complexContent>\n <xsd:extension base=\"ens:sObject\">\n <xsd:sequence>\n <xsd:element name=\"ApexClassOrTrigger\" minOccurs=\"0\" type=\"ens:sObject\" nillable=\"true\"/>\n <xsd:element name=\"ApexClassOrTriggerId\" minOccurs=\"0\" type=\"tns:ID\" nillable=\"true\"/>\n <xsd:element name=\"ApexTestClass\" minOccurs=\"0\" type=\"ens:ApexClass\" nillable=\"true\"/>\n <xsd:element name=\"ApexTestClassId\" minOccurs=\"0\" type=\"tns:ID\" nillable=\"true\"/>\n <xsd:element name=\"Coverage\" minOccurs=\"0\" type=\"tns:Coverage\" nillable=\"true\"/>\n <xsd:element name=\"CreatedBy\" minOccurs=\"0\" type=\"ens:User\" nillable=\"true\"/>\n <xsd:element name=\"CreatedById\" minOccurs=\"0\" type=\"tns:ID\" nillable=\"true\"/>\n <xsd:element name=\"CreatedDate\" minOccurs=\"0\" type=\"xsd:dateTime\" nillable=\"true\"/>\n <xsd:element name=\"IsDeleted\" minOccurs=\"0\" type=\"xsd:boolean\" nillable=\"true\"/>\n <xsd:element name=\"LastModifiedBy\" minOccurs=\"0\" type=\"ens:User\" nillable=\"true\"/>\n <xsd:element name=\"LastModifiedById\" minOccurs=\"0\" type=\"tns:ID\" nillable=\"true\"/>\n <xsd:element name=\"LastModifiedDate\" minOccurs=\"0\" type=\"xsd:dateTime\" nillable=\"true\"/>\n <xsd:element name=\"NumLinesCovered\" minOccurs=\"0\" type=\"xsd:int\" nillable=\"true\"/>\n <xsd:element name=\"NumLinesUncovered\" minOccurs=\"0\" type=\"xsd:int\" nillable=\"true\"/>\n <xsd:element name=\"SystemModstamp\" minOccurs=\"0\" type=\"xsd:dateTime\" nillable=\"true\"/>\n <xsd:element name=\"TestMethodName\" minOccurs=\"0\" type=\"xsd:string\" nillable=\"true\"/>\n </xsd:sequence>\n </xsd:extension>\n </xsd:complexContent>\n</xsd:complexType>\n<xsd:complexType name=\"Coverage\">\n <xsd:sequence>\n <xsd:element name=\"coveredLines\" minOccurs=\"0\" maxOccurs=\"unbounded\" type=\"xsd:int\"/>\n <xsd:element name=\"uncoveredLines\" minOccurs=\"0\" maxOccurs=\"unbounded\" type=\"xsd:int\"/>\n </xsd:sequence>\n</xsd:complexType>\n<xsd:simpleType name=\"ID\">\n <xsd:restriction base=\"xsd:string\">\n <xsd:length value=\"18\"/>\n <xsd:pattern value=\"[a-zA-Z0-9]{18}\"/>\n </xsd:restriction>\n</xsd:simpleType>\n```"
}