Superior courts may entertain proceedings for the perpetuation of testimony in all proceedings in which the fact to which the testimony relates cannot immediately be made the subject of investigation at law and in which, for any cause, the common-law proceeding authorized under this title is not as available, or as completely available, as a proceeding in equity.