Get platform protection string
(interface)
| 69 | # |
| 70 | # Return appropriate feature protect string from 'platform' tag on feature |
| 71 | def GetFeatureProtect(interface): |
| 72 | """Get platform protection string""" |
| 73 | platform = interface.get('platform') |
| 74 | if platform is not None: |
| 75 | return platform_dict[platform] |
| 76 | |
| 77 | provisional = interface.get('provisional') |
| 78 | if provisional == 'true': |
| 79 | return platform_dict['provisional'] |
| 80 | |
| 81 | # Returns true if we are running in GitHub actions |
| 82 | # https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables |
nothing calls this directly
no outgoing calls
no test coverage detected