MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / resolveAxeBinary

Function resolveAxeBinary

src/utils/axe-helpers.ts:107–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105}
106
107export function resolveAxeBinary(): AxeBinary | null {
108 const configPath = resolveAxePathFromConfig();
109 if (configPath) {
110 return { path: configPath, source: 'env' };
111 }
112
113 const sourcePath = resolveAxePathFromSourceConfig();
114 if (sourcePath) {
115 return { path: sourcePath, source: 'source' };
116 }
117
118 const bundledPath = resolveBundledAxePath();
119 if (bundledPath) {
120 return { path: bundledPath, source: 'bundled' };
121 }
122
123 const pathBinary = resolveAxePathFromPath();
124 if (pathBinary) {
125 return { path: pathBinary, source: 'path' };
126 }
127
128 return null;
129}
130
131/**
132 * Get the path to the available axe binary

Callers 5

mainFunction · 0.90
checkBinaryAvailabilityFunction · 0.90
getAxePathFunction · 0.85
getBundledAxeEnvironmentFunction · 0.85

Calls 4

resolveAxePathFromConfigFunction · 0.85
resolveBundledAxePathFunction · 0.85
resolveAxePathFromPathFunction · 0.85

Tested by

no test coverage detected