(self, attributes: dict[str, Any])
| 106 | return self._state.value |
| 107 | |
| 108 | def _useAttributes(self, attributes: dict[str, Any]) -> None: |
| 109 | if "analysis_key" in attributes: # pragma no branch |
| 110 | self._analysis_key = self._makeStringAttribute(attributes["analysis_key"]) |
| 111 | if "category" in attributes: # pragma no branch |
| 112 | self._category = self._makeStringAttribute(attributes["category"]) |
| 113 | if "classifications" in attributes: # pragma no branch |
| 114 | self._classifications = self._makeListOfStringsAttribute(attributes["classifications"]) |
| 115 | if "commit_sha" in attributes: # pragma no branch |
| 116 | self._commit_sha = self._makeStringAttribute(attributes["commit_sha"]) |
| 117 | if "environment" in attributes: # pragma no branch |
| 118 | self._environment = self._makeStringAttribute(attributes["environment"]) |
| 119 | if "environment" in attributes: # pragma no branch |
| 120 | self._environment = self._makeStringAttribute(attributes["environment"]) |
| 121 | if "html_url" in attributes: # pragma no branch |
| 122 | self._html_url = self._makeStringAttribute(attributes["html_url"]) |
| 123 | if "location" in attributes: # pragma no branch |
| 124 | self._location = self._makeClassAttribute( |
| 125 | github.CodeScanAlertInstanceLocation.CodeScanAlertInstanceLocation, |
| 126 | attributes["location"], |
| 127 | ) |
| 128 | if "message" in attributes: # pragma no branch |
| 129 | self._message = self._makeDictAttribute(attributes["message"]) |
| 130 | if "ref" in attributes: # pragma no branch |
| 131 | self._ref = self._makeStringAttribute(attributes["ref"]) |
| 132 | if "state" in attributes: # pragma no branch |
| 133 | self._state = self._makeStringAttribute(attributes["state"]) |
nothing calls this directly
no test coverage detected