Home / Class/ FakeKeyGenerator Class — astro Architecture

FakeKeyGenerator Class — astro Architecture

Architecture documentation for the FakeKeyGenerator class in utils.js from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  6e8eaab6_be00_0621_ce7e_d1b21c6209aa["FakeKeyGenerator"]
  dc38b823_10e6_0080_9a8c_08dc7cc3e0eb["utils.js"]
  6e8eaab6_be00_0621_ce7e_d1b21c6209aa -->|defined in| dc38b823_10e6_0080_9a8c_08dc7cc3e0eb
  931806ac_beef_a7dc_52f2_c14f1e853fae["constructor()"]
  6e8eaab6_be00_0621_ce7e_d1b21c6209aa -->|method| 931806ac_beef_a7dc_52f2_c14f1e853fae
  203b5170_959c_8880_42d5_a0d196db4160["generate()"]
  6e8eaab6_be00_0621_ce7e_d1b21c6209aa -->|method| 203b5170_959c_8880_42d5_a0d196db4160

Relationship Graph

Source Code

packages/astro/test/units/cli/utils.js lines 27–41

export class FakeKeyGenerator {
	/** @type {string} */
	#key;

	/**
	 * @param {string} key
	 */
	constructor(key) {
		this.#key = key;
	}

	async generate() {
		return this.#key;
	}
}

Frequently Asked Questions

What is the FakeKeyGenerator class?
FakeKeyGenerator is a class in the astro codebase, defined in packages/astro/test/units/cli/utils.js.
Where is FakeKeyGenerator defined?
FakeKeyGenerator is defined in packages/astro/test/units/cli/utils.js at line 27.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free