Skip to content

Commit

Permalink
test: use '_' for non-test test files
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Sep 20, 2024
1 parent 108939a commit 355c0cd
Show file tree
Hide file tree
Showing 108 changed files with 83 additions and 83 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/base64/test/main.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava';
import { atob as origAtob, btoa as origBtoa } from './capture-atob-btoa.js';
import { atob as origAtob, btoa as origBtoa } from './_capture-atob-btoa.js';
import { encodeBase64, decodeBase64, atob, btoa } from '../index.js';

/**
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/bundle-source/test/sanity-unfiltered.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Like test-sanity.js but with { stackFiltering: 'verbose' }
import { makeSanityTests } from './sanity.js';
import { makeSanityTests } from './_sanity.js';

makeSanityTests('verbose');
2 changes: 1 addition & 1 deletion packages/bundle-source/test/sanity.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Like test-sanity-unfiltered.js but with { stackFiltering: 'concise' }
import { makeSanityTests } from './sanity.js';
import { makeSanityTests } from './_sanity.js';

// 'concise' is currently the default. But the purpose of this
// test is not to test what choice is the default. Since the behavior
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/evasive-transform/test/elide-comment.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { test } from './prepare-test-env-ava-fixture.js';
import { test } from './_prepare-test-env-ava-fixture.js';
import { elideComment } from '../src/transform-comment.js';
import { evadeCensorSync } from '../src/index.js';

Expand Down
2 changes: 1 addition & 1 deletion packages/evasive-transform/test/evade-censor.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { evadeCensorSync } from '../src/index.js';
import { test } from './prepare-test-env-ava-fixture.js';
import { test } from './_prepare-test-env-ava-fixture.js';

/**
* Removes all linefeeds from string
Expand Down
2 changes: 1 addition & 1 deletion packages/evasive-transform/test/location-unmapper.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import babelParser from '@babel/parser';
import { makeLocationUnmapper } from '../src/location-unmapper.js';
import { test } from './prepare-test-env-ava-fixture.js';
import { test } from './_prepare-test-env-ava-fixture.js';

const { parse: parseBabel } = babelParser;

Expand Down
2 changes: 1 addition & 1 deletion packages/evasive-transform/test/transform-comment.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { test } from './prepare-test-env-ava-fixture.js';
import { test } from './_prepare-test-env-ava-fixture.js';
import { evadeComment } from '../src/transform-comment.js';

test('evadeComment() - Node type becomes CommentBlock', async t => {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/eventual-send/test/deep-send.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import '@endo/lockdown/commit-debug.js';
import test from 'ava';

import { E } from './get-hp.js';
import { E } from './_get-hp.js';

const { freeze } = Object;

Expand Down
2 changes: 1 addition & 1 deletion packages/eventual-send/test/deep-stacks.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import '@endo/lockdown/commit-debug.js';
import test from 'ava';

import { E } from './get-hp.js';
import { E } from './_get-hp.js';

const testDeepStacksWhen = test.macro({
title: (title, loggerDescription, _getLogger) =>
Expand Down
2 changes: 1 addition & 1 deletion packages/eventual-send/test/e.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import '@endo/lockdown/commit-debug.js';
import test from 'ava';

import { E, HandledPromise } from './get-hp.js';
import { E, HandledPromise } from './_get-hp.js';

test('E reexports', async t => {
t.is(E.resolve, HandledPromise.resolve, 'E reexports resolve');
Expand Down
2 changes: 1 addition & 1 deletion packages/eventual-send/test/eventual-send.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import '@endo/lockdown/commit-debug.js';
import test from 'ava';

import { HandledPromise } from './get-hp.js';
import { HandledPromise } from './_get-hp.js';

const { getPrototypeOf } = Object;
const { details: X } = assert;
Expand Down
2 changes: 1 addition & 1 deletion packages/eventual-send/test/hp.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import '@endo/lockdown/commit-debug.js';
import test from 'ava';

import { HandledPromise } from './get-hp.js';
import { HandledPromise } from './_get-hp.js';

const { getPrototypeOf, isFrozen } = Object;
const { ownKeys, getOwnPropertyDescriptor } = Reflect;
Expand Down
2 changes: 1 addition & 1 deletion packages/eventual-send/test/proxy.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import '@endo/lockdown/commit-debug.js';
import test from 'ava';

import { HandledPromise } from './get-hp.js';
import { HandledPromise } from './_get-hp.js';

test('resolveWithPresence with proxy options', async t => {
const l = t.log; // decomment this line for debug aid
Expand Down
2 changes: 1 addition & 1 deletion packages/eventual-send/test/thenable.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import '@endo/lockdown/commit-debug.js';
import test from 'ava';

import { E, HandledPromise } from './get-hp.js';
import { E, HandledPromise } from './_get-hp.js';

const verifySimplePromise = async (t, resolve) => {
const p = new Promise(_ => {});
Expand Down
2 changes: 1 addition & 1 deletion packages/eventual-send/test/types.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import '@endo/lockdown/commit-debug.js';
import test from 'ava';

import { E } from './get-hp.js';
import { E } from './_get-hp.js';

/**
* Mock a Remotable maker.
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/exo/test/label-instances.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line import/order
import test from './prepare-test-env-ava-label-instances.js';
import test from './_prepare-test-env-ava-label-instances.js';

// eslint-disable-next-line import/order
import { passStyleOf } from '@endo/far';
Expand Down
2 changes: 1 addition & 1 deletion packages/exo/test/legacy-guard-tolerance.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
makeLegacyAwaitArgGuard,
makeLegacyMethodGuard,
makeLegacyInterfaceGuard,
} from './make-legacy-guards.js';
} from './_make-legacy-guards.js';
import { makeExo } from '../src/exo-makers.js';

test('legacy guard tolerance', async t => {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/marshal/test/encodePassable.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
makeDecodePassable,
} from '../src/encodePassable.js';
import { compareRank, makeComparatorKit } from '../src/rankOrder.js';
import { unsortedSample } from './marshal-test-data.js';
import { unsortedSample } from './_marshal-test-data.js';

const buffers = {
__proto__: null,
Expand Down
2 changes: 1 addition & 1 deletion packages/marshal/test/marshal-capdata.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import test from '@endo/ses-ava/prepare-endo.js';

import { passStyleOf, Far } from '@endo/pass-style';
import { makeMarshal } from '../src/marshal.js';
import { roundTripPairs } from './marshal-test-data.js';
import { roundTripPairs } from './_marshal-test-data.js';

const {
freeze,
Expand Down
2 changes: 1 addition & 1 deletion packages/marshal/test/marshal-justin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import test from '@endo/ses-ava/prepare-endo.js';
import { Remotable, makeTagged } from '@endo/pass-style';
import { makeMarshal } from '../src/marshal.js';
import { decodeToJustin } from '../src/marshal-justin.js';
import { jsonJustinPairs } from './marshal-test-data.js';
import { jsonJustinPairs } from './_marshal-test-data.js';

// this only includes the tests that do not use liveSlots

Expand Down
2 changes: 1 addition & 1 deletion packages/marshal/test/marshal-smallcaps.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import test from '@endo/ses-ava/prepare-endo.js';
import { Far, makeTagged, passStyleOf } from '@endo/pass-style';
import { makeMarshal } from '../src/marshal.js';

import { roundTripPairs } from './marshal-test-data.js';
import { roundTripPairs } from './_marshal-test-data.js';

const {
freeze,
Expand Down
2 changes: 1 addition & 1 deletion packages/marshal/test/marshal-stringify.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import test from '@endo/ses-ava/prepare-endo.js';

import { Far } from '@endo/pass-style';
import { stringify, parse } from '../src/marshal-stringify.js';
import { roundTripPairs } from './marshal-test-data.js';
import { roundTripPairs } from './_marshal-test-data.js';

const { isFrozen } = Object;

Expand Down
2 changes: 1 addition & 1 deletion packages/marshal/test/rankOrder.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
getIndexCover,
assertRankSorted,
} from '../src/rankOrder.js';
import { unsortedSample, sortedSample } from './marshal-test-data.js';
import { unsortedSample, sortedSample } from './_marshal-test-data.js';

test('compareRank is reflexive', async t => {
await fc.assert(
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/module-source/test/module-source.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// eslint-disable-next-line import/order
import { ModuleSource } from '../src/module-source.js';
import './lockdown.js';
import './_lockdown.js';
import url from 'url';
import fs from 'fs';
import test from 'ava';
Expand Down
2 changes: 1 addition & 1 deletion packages/pass-style/test/message-breakpoints-demo.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import './prepare-breakpoints.js';
import './_prepare-breakpoints.js';
import test from '@endo/ses-ava/prepare-endo.js';

import { E } from '@endo/eventual-send';
Expand Down
2 changes: 1 addition & 1 deletion packages/pass-style/test/message-breakpoints.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import './prepare-breakpoints.js';
import './_prepare-breakpoints.js';
import test from '@endo/ses-ava/prepare-endo.js';

import { makeMessageBreakpointTester } from '@endo/eventual-send/utils.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/pass-style/test/passable-string.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable no-useless-concat */
import './prepare-only-well-formed-strings-passable.js';
import './_prepare-only-well-formed-strings-passable.js';
import test from '@endo/ses-ava/prepare-endo.js';

import { isWellFormedString, assertWellFormedString } from '../src/string.js';
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/promise-kit/test/promise-kit.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* globals globalThis, FinalizationRegistry, setImmediate */

import 'ses';
import './lockdown.js';
import './_lockdown.js';
import test from 'ava';

import v8 from 'node:v8';
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/ses-ava/test/raw-ava-reject.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import 'ses';
import test from 'ava';
import { exampleProblem } from './example-problem.js';
import { exampleProblem } from './_example-problem.js';

lockdown({
// Comment or uncomment each of these switches to see variations of the
Expand Down
2 changes: 1 addition & 1 deletion packages/ses-ava/test/raw-ava-throw.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import 'ses';
import test from 'ava';
import { exampleProblem } from './example-problem.js';
import { exampleProblem } from './_example-problem.js';

lockdown({
// Comment or uncomment each of these switches to see variations of the
Expand Down
2 changes: 1 addition & 1 deletion packages/ses-ava/test/ses-ava-reject.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import 'ses';
import rawTest from 'ava';
import { wrapTest } from '../src/ses-ava-test.js';
import { exampleProblem } from './example-problem.js';
import { exampleProblem } from './_example-problem.js';

lockdown({
// Comment or uncomment each of these switches to see variations of the
Expand Down
2 changes: 1 addition & 1 deletion packages/ses-ava/test/ses-ava-throw.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import 'ses';
import rawTest from 'ava';
import { wrapTest } from '../src/ses-ava-test.js';
import { exampleProblem } from './example-problem.js';
import { exampleProblem } from './_example-problem.js';

lockdown({
// Comment or uncomment each of these switches to see variations of the
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import '../index.js';
import './lockdown-safe.js';
import './_lockdown-safe.js';
import test from 'ava';

// Confirm that tap can be imported after a safe-Error lockdown, and exercise
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import '../index.js';
import './lockdown-unsafe.js';
import './_lockdown-unsafe.js';
import test from 'ava';

// Confirm that tap can be imported after an unsafe-Error lockdown, and
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/ses/test/node.js → packages/ses/test/_node.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Module node.js provides resolve and locate hooks that follow a subset of
// Node.js module semantics.

import { makeStaticRetriever, makeImporter } from './import-commons.js';
import { makeStaticRetriever, makeImporter } from './_import-commons.js';

const q = JSON.stringify;

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* global AsyncIterator */
import './enforce-cjs-strict.js';
import './core-js-configuration.js';
import './_enforce-cjs-strict.js';
import './_core-js-configuration.js';
import 'core-js/actual/async-iterator/index.js';
import '../index.js';
import './lockdown-safe.js';
import './_lockdown-safe.js';
import test from 'ava';

test('shimmed async-iterator helpers', async t => {
Expand Down
6 changes: 3 additions & 3 deletions packages/ses/test/anticipate-iterator-helpers-shimmed.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* global Iterator */
import './enforce-cjs-strict.js';
import './core-js-configuration.js';
import './_enforce-cjs-strict.js';
import './_core-js-configuration.js';
import 'core-js/actual/iterator/index.js';
import '../index.js';
import './lockdown-safe.js';
import './_lockdown-safe.js';
import test from 'ava';

test('shimmed iterator helpers', t => {
Expand Down
2 changes: 1 addition & 1 deletion packages/ses/test/backslash-u-identifier.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import '../index.js';
import './lockdown-safe.js';
import './_lockdown-safe.js';
import test from 'ava';

test('backslash-u-varname', t => {
Expand Down
2 changes: 1 addition & 1 deletion packages/ses/test/break-function-eval.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* global globalThis */

import '../index.js';
import './lockdown-safe.js';
import './_lockdown-safe.js';
import test from 'ava';

test('function-no-body', t => {
Expand Down
2 changes: 1 addition & 1 deletion packages/ses/test/compartment-transforms.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import '../index.js';
import './lockdown-safe.js';
import './_lockdown-safe.js';
import { ModuleSource } from '@endo/module-source';
// Placing the ava import last demonstrates that ava itself is compatible with SES
import test from 'ava';
Expand Down
2 changes: 1 addition & 1 deletion packages/ses/test/confinement.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* global globalThis */

import '../index.js';
import './lockdown-safe.js';
import './_lockdown-safe.js';
import test from 'ava';

test('confinement evaluation strict mode', t => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import '../index.js';
import test from 'ava';
import { overrideTester } from './override-tester.js';
import { overrideTester } from './_override-tester.js';

lockdown({
errorTaming: 'unsafe',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import '../index.js';
import test from 'ava';
import { overrideTester } from './override-tester.js';
import { overrideTester } from './_override-tester.js';

lockdown({
errorTaming: 'safe',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import '../index.js';
import test from 'ava';
import { overrideTester } from './override-tester.js';
import { overrideTester } from './_override-tester.js';

lockdown({
errorTaming: 'unsafe',
Expand Down
2 changes: 1 addition & 1 deletion packages/ses/test/enable-property-overrides-min.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import '../index.js';
import test from 'ava';
import { overrideTester } from './override-tester.js';
import { overrideTester } from './_override-tester.js';

lockdown({
errorTaming: 'safe',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import '../index.js';
import test from 'ava';
import { overrideTester } from './override-tester.js';
import { overrideTester } from './_override-tester.js';

lockdown({
overrideTaming: 'severe',
Expand Down
2 changes: 1 addition & 1 deletion packages/ses/test/enable-property-overrides-severe.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import '../index.js';
import test from 'ava';
import { overrideTester } from './override-tester.js';
import { overrideTester } from './_override-tester.js';

lockdown({ overrideTaming: 'severe', __hardenTaming__: 'safe' });

Expand Down
2 changes: 1 addition & 1 deletion packages/ses/test/evade-html-comment.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import '../index.js';
import './lockdown-safe.js';
import './_lockdown-safe.js';
import test from 'ava';

const opt = harden({ __evadeHtmlCommentTest__: true });
Expand Down
Loading

0 comments on commit 355c0cd

Please sign in to comment.