MCPcopy Create free account
hub / github.com/golang/mobile / IsAvailable

Function IsAvailable

internal/importers/java/java.go:165–168  ·  view source on GitHub ↗

IsAvailable reports whether the required tools are available for Import to work. In particular, IsAvailable checks the existence of the javap binary.

()

Source from the content-addressed store, hash-verified

163// Import to work. In particular, IsAvailable checks the existence
164// of the javap binary.
165func IsAvailable() bool {
166 _, err := javapPath()
167 return err == nil
168}
169
170func javapPath() (string, error) {
171 return exec.LookPath("javap")

Callers 4

TestGenJavaFunction · 0.92
TestGenGoJavaWrappersFunction · 0.92
TestClassesFunction · 0.92
TestImportFunction · 0.85

Calls 1

javapPathFunction · 0.85

Tested by 4

TestGenJavaFunction · 0.74
TestGenGoJavaWrappersFunction · 0.74
TestClassesFunction · 0.74
TestImportFunction · 0.68