Skip to content

Commit

Permalink
Import cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderOMara committed Dec 15, 2024
1 parent 59f9a5c commit c801caa
Show file tree
Hide file tree
Showing 23 changed files with 7 additions and 30 deletions.
7 changes: 3 additions & 4 deletions arr.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ import {
assertStrictEquals,
assertThrows,
} from '@std/assert';

import { int8 } from './int/8.ts';
import { Struct } from './struct.ts';
import { array } from './arr.ts';
import { bigEndian, littleEndian } from './endian.ts';
import { int8 } from './int/8.ts';
import { pointer } from './ptr.ts';
import { Struct } from './struct.ts';
import { getByteLength, getByteOffset } from './util.ts';
import { bigEndian, littleEndian } from './endian.ts';

Deno.test('pointer', () => {
class Foo extends Struct {
Expand Down
1 change: 0 additions & 1 deletion arr.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { MeekValueMap } from '@hqtsm/meek/valuemap';

import type { MemberInfos, Members } from './members.ts';
import type { ArrayBufferReal } from './native.ts';
import {
Expand Down
1 change: 0 additions & 1 deletion bool/16.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { assertEquals } from '@std/assert';

import { Struct } from '../struct.ts';
import { getByteLength, getByteOffset } from '../util.ts';
import {
Expand Down
1 change: 0 additions & 1 deletion bool/32.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { assertEquals } from '@std/assert';

import { Struct } from '../struct.ts';
import { getByteLength, getByteOffset } from '../util.ts';
import {
Expand Down
1 change: 0 additions & 1 deletion bool/8.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { assertEquals } from '@std/assert';

import { Struct } from '../struct.ts';
import { getByteLength, getByteOffset } from '../util.ts';
import { bool8, Bool8Ptr } from './8.ts';
Expand Down
1 change: 0 additions & 1 deletion endian.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { assertEquals, assertNotEquals, assertStrictEquals } from '@std/assert';

import {
BIG_ENDIAN,
bigEndian,
Expand Down
1 change: 0 additions & 1 deletion float/16.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { getFloat16, setFloat16 } from '@hqtsm/dataview/float/16';
import { assertEquals } from '@std/assert';

import type { ArrayBufferReal } from '../native.ts';
import { Struct } from '../struct.ts';
import { dataView, getByteLength, getByteOffset } from '../util.ts';
Expand Down
1 change: 0 additions & 1 deletion float/16.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { getFloat16, setFloat16 } from '@hqtsm/dataview/float/16';

import { defineMember } from '../member.ts';
import type { MemberableClass, MemberableClassKeys } from '../members.ts';
import { Ptr } from '../ptr.ts';
Expand Down
1 change: 0 additions & 1 deletion float/32.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { assertEquals } from '@std/assert';

import { Struct } from '../struct.ts';
import { getByteLength, getByteOffset } from '../util.ts';
import {
Expand Down
1 change: 0 additions & 1 deletion float/64.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { assertEquals } from '@std/assert';

import { Struct } from '../struct.ts';
import { getByteLength, getByteOffset } from '../util.ts';
import {
Expand Down
1 change: 0 additions & 1 deletion int/16.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { assertEquals } from '@std/assert';

import { Struct } from '../struct.ts';
import { getByteLength, getByteOffset } from '../util.ts';
import {
Expand Down
1 change: 0 additions & 1 deletion int/24.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
setUint24,
} from '@hqtsm/dataview/int/24';
import { assertEquals } from '@std/assert';

import { Struct } from '../struct.ts';
import { getByteLength, getByteOffset } from '../util.ts';
import {
Expand Down
1 change: 0 additions & 1 deletion int/24.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
setInt24,
setUint24,
} from '@hqtsm/dataview/int/24';

import { defineMember } from '../member.ts';
import type { MemberableClass, MemberableClassKeys } from '../members.ts';
import { Ptr } from '../ptr.ts';
Expand Down
1 change: 0 additions & 1 deletion int/32.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { assertEquals } from '@std/assert';

import { Struct } from '../struct.ts';
import { getByteLength, getByteOffset } from '../util.ts';
import {
Expand Down
1 change: 0 additions & 1 deletion int/64.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { assertEquals } from '@std/assert';

import { Struct } from '../struct.ts';
import { getByteLength, getByteOffset } from '../util.ts';
import {
Expand Down
1 change: 0 additions & 1 deletion int/8.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { assertEquals } from '@std/assert';

import { Struct } from '../struct.ts';
import { getByteLength, getByteOffset } from '../util.ts';
import { int8, Int8Ptr, uint8, Uint8Ptr } from './8.ts';
Expand Down
1 change: 0 additions & 1 deletion member.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
assertStrictEquals,
assertThrows,
} from '@std/assert';

import { uint32 } from './int/32.ts';
import { member, memberBE, memberLE, pad } from './member.ts';
import { Struct } from './struct.ts';
Expand Down
5 changes: 2 additions & 3 deletions members.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { assertEquals } from '@std/assert/equals';

import { array } from './arr.ts';
import { Uint8Ptr } from './int/8.ts';
import { uint32 } from './int/32.ts';
import { member } from './member.ts';
import { Struct } from './struct.ts';
import { array } from './arr.ts';
import { Uint8Ptr } from './int/8.ts';

Deno.test('ClassMemberable: additional member', () => {
class Foo extends Struct {
Expand Down
1 change: 0 additions & 1 deletion ptr.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
assertStrictEquals,
assertThrows,
} from '@std/assert';

import { LITTLE_ENDIAN } from './endian.ts';
import { int8, Uint8Ptr } from './int/8.ts';
import { pointer, Ptr } from './ptr.ts';
Expand Down
1 change: 0 additions & 1 deletion ptr.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { MeekValueMap } from '@hqtsm/meek/valuemap';

import { Endian } from './endian.ts';
import type { MemberInfo, MemberInfos, Members } from './members.ts';
import type { ArrayBufferReal } from './native.ts';
Expand Down
1 change: 0 additions & 1 deletion scripts/npm.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// deno-lint-ignore-file no-top-level-await no-console

import { build, type BuildOptions, emptyDir } from '@deno/dnt';

import denoJson from '../deno.json' with { type: 'json' };

if (Deno.args.length !== 1 || !/^(dev|prod)$/.test(Deno.args[0])) {
Expand Down
5 changes: 2 additions & 3 deletions struct.test.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { assertEquals, assertStrictEquals, assertThrows } from '@std/assert';

import { bool32 } from './bool/32.ts';
import { LITTLE_ENDIAN } from './endian.ts';
import { int8 } from './int/8.ts';
import { uint32 } from './int/32.ts';
import { member, pad } from './member.ts';
import { Struct } from './struct.ts';
import { getByteOffset } from './util.ts';
import { uint32 } from './int/32.ts';
import { bool32 } from './bool/32.ts';

Deno.test('Struct: buffer', () => {
const buffer = new ArrayBuffer(0);
Expand Down
1 change: 0 additions & 1 deletion util.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { assertEquals, assertThrows } from '@std/assert';

import { uint8 } from './int/8.ts';
import { Struct } from './struct.ts';
import { assignType, assignView } from './util.ts';
Expand Down

0 comments on commit c801caa

Please sign in to comment.