> Aztec.nr API reference, v6.0.0 (mainnet and testnet). Index: https://docs.aztec.network/aztec-nr-api/v6.0.0/llms.txt

# Struct OracleMock

Module: `std::test`

```rust
pub struct OracleMock
{ /* private fields */ }
```

## Implementations

```rust
impl OracleMock
```

```rust
pub unconstrained fn mock<let N: u32>(name: str<N>) -> Self
```

```rust
pub unconstrained fn with_params<P>(self, params: P) -> Self
```

```rust
pub unconstrained fn get_last_params<P>(self) -> P
```

```rust
pub unconstrained fn returns<R>(self, returns: R) -> Self
```

```rust
pub unconstrained fn times(self, times: u64) -> Self
```

```rust
pub unconstrained fn clear(self)
```

```rust
pub unconstrained fn times_called(self) -> Field
```
