You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: java_fs.go
    path of file: ./repos/beam/playground/backend/internal/fs_tool
    
    the code of the file until where you have to start completion: // Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements.  See the NOTICE file distributed with
// this work for additional information regarding c
    
func findTestExecutableName(ctx context.Context, executableFileFolderPath string) (string, error) {
	dirEntries, err := os.ReadDir(executableFileFolderPath)
	if err != nil {
		return "", err
	}
	if len(dirEntries) < 1 {
		return "", errors.New("number of executable files should be at least one")
	}

	if len(dirEntries) == 1 {
		return utils.TrimExtension(dirEntries[0].Name()), nil
	}

	for _, entry := range dirEntries {
		select {
		case <-ctx.Done():
			return "", ctx.Err()
		default:
			ext := filepath.Ext(entry.Name())
			filename := strings.TrimSuffix(entry.Name(), ext)

			if ext == javaCompiledFileExtension {
				isTest, err := isTestClass(ctx, executableFileFolderPath, filename)
				if err != nil {
					logger.Errorf("findTestExecutableName(): file %s: error during checking main class: %s", entry.Name(), err.Error())
					break
				}
				if isTest {
					logger.Infof("findTestExecutableName(): main file is %s", filename)
					return filename, nil
				}
			}
		}
	}

	return "", errors.New("cannot find file with unit tests")
}