You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Defined in: [src/application-spy.ts:15](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/application-spy.ts#L15)
Defined in: [src/application-spy.ts:26](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/application-spy.ts#L26)
Defined in: [src/application-spy.ts:19](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/application-spy.ts#L19)
Defined in: [src/application-spy.ts:22](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/application-spy.ts#L22)
Defined in: [src/application-spy.ts:49](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/application-spy.ts#L49)
64
+
65
+
Registers a callback for a specific method signature.
Copy file name to clipboardExpand all lines: docs/code/index/classes/TestExecutionContext.md
+84-24Lines changed: 84 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
7
7
# Class: TestExecutionContext
8
8
9
-
Defined in: [src/test-execution-context.ts:20](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L20)
9
+
Defined in: [src/test-execution-context.ts:26](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L26)
10
10
11
11
The `TestExecutionContext` class provides a context for executing tests in an Algorand environment.
12
12
It manages various contexts such as contract, ledger, and transaction contexts, and provides utilities
@@ -18,7 +18,7 @@ for generating values, managing accounts, and handling logic signatures.
Defined in: [src/test-execution-context.ts:36](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L36)
21
+
Defined in: [src/test-execution-context.ts:43](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L43)
22
22
23
23
Creates an instance of `TestExecutionContext`.
24
24
@@ -42,7 +42,7 @@ The default sender address.
42
42
43
43
> **get****activeLogicSigArgs**(): `bytes`[]
44
44
45
-
Defined in: [src/test-execution-context.ts:117](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L117)
45
+
Defined in: [src/test-execution-context.ts:124](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L124)
46
46
47
47
Returns the active logic signature arguments.
48
48
@@ -58,7 +58,7 @@ Returns the active logic signature arguments.
Defined in: [src/test-execution-context.ts:90](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L90)
61
+
Defined in: [src/test-execution-context.ts:97](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L97)
Defined in: [src/test-execution-context.ts:63](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L63)
77
+
Defined in: [src/test-execution-context.ts:70](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L70)
78
78
79
79
Returns the contract context.
80
80
@@ -90,7 +90,7 @@ Returns the contract context.
90
90
91
91
> **get****defaultSender**(): `Account`
92
92
93
-
Defined in: [src/test-execution-context.ts:99](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L99)
93
+
Defined in: [src/test-execution-context.ts:106](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L106)
94
94
95
95
Returns the default sender account.
96
96
@@ -102,7 +102,7 @@ Returns the default sender account.
102
102
103
103
> **set****defaultSender**(`val`): `void`
104
104
105
-
Defined in: [src/test-execution-context.ts:108](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L108)
105
+
Defined in: [src/test-execution-context.ts:115](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L115)
Defined in: [src/test-execution-context.ts:72](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L72)
129
+
Defined in: [src/test-execution-context.ts:79](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L79)
Defined in: [src/test-execution-context.ts:126](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L126)
145
+
Defined in: [src/test-execution-context.ts:133](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L133)
146
146
147
147
Returns the template variables.
148
148
@@ -158,7 +158,7 @@ Returns the template variables.
Defined in: [src/test-execution-context.ts:81](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L81)
161
+
Defined in: [src/test-execution-context.ts:88](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L88)
162
162
163
163
Returns the transaction context.
164
164
@@ -168,11 +168,35 @@ Returns the transaction context.
Defined in: [src/test-execution-context.ts:204](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L204)
Defined in: [src/test-execution-context.ts:137](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L137)
199
+
Defined in: [src/test-execution-context.ts:144](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L144)
176
200
177
201
Executes a logic signature with the given arguments.
178
202
@@ -200,7 +224,7 @@ The arguments for the logic signature.
Defined in: [src/test-execution-context.ts:54](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L54)
227
+
Defined in: [src/test-execution-context.ts:61](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L61)
204
228
205
229
Exports logs for a given application ID and decoding.
Defined in: [src/test-execution-context.ts:163](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L163)
261
+
Defined in: [src/test-execution-context.ts:170](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L170)
Defined in: [src/test-execution-context.ts:188](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L188)
283
+
Defined in: [src/test-execution-context.ts:221](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L221)
Defined in: [src/test-execution-context.ts:190](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L190)
Defined in: [src/test-execution-context.ts:211](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L211)
341
+
Defined in: [src/test-execution-context.ts:244](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L244)
282
342
283
343
Reinitializes the execution context, clearing all state variables and resetting internal components.
284
344
Invoked between test cases to ensure isolation.
@@ -293,7 +353,7 @@ Invoked between test cases to ensure isolation.
293
353
294
354
> **setCompiledApp**(`c`, `appId`): `void`
295
355
296
-
Defined in: [src/test-execution-context.ts:173](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L173)
356
+
Defined in: [src/test-execution-context.ts:180](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L180)
297
357
298
358
Sets a compiled application.
299
359
@@ -321,7 +381,7 @@ The application ID.
321
381
322
382
> **setCompiledLogicSig**(`c`, `account`): `void`
323
383
324
-
Defined in: [src/test-execution-context.ts:198](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L198)
384
+
Defined in: [src/test-execution-context.ts:231](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L231)
325
385
326
386
Sets a compiled logic signature.
327
387
@@ -349,7 +409,7 @@ The account associated with the logic signature.
Defined in: [src/test-execution-context.ts:153](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L153)
412
+
Defined in: [src/test-execution-context.ts:160](https://github.com/algorandfoundation/algorand-typescript-testing/blob/main/src/test-execution-context.ts#L160)
0 commit comments