Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/pact/src/pact-js/pactcore.ffi.ts>FfiConsumerFunctions

Pact 🔗 Contract Testing for Deno 🦕, Powered by Rust 🦀
Latest
type alias FfiConsumerFunctions
import { type FfiConsumerFunctions } from "https://deno.land/x/pact@0.1.0/src/pact-js/pactcore.ffi.ts";
definition: { pactffiCreateMockServerForPact(
handle: FfiPactHandle,
address: string,
tls: boolean,
): number; pactffiCreateMockServerForTransport(
handle: FfiPactHandle,
address: string,
port: number,
transport: string,
config: string,
): number; pactffiNewPact(consumer: string, provider: string): FfiPactHandle; pactffiWithSpecification(handle: FfiPactHandle, specification: FfiSpecificationVersion): boolean; pactffiWithPactMetadata(
handle: FfiPactHandle,
namespace_: string,
name: string,
value: string,
): boolean; pactffiNewInteraction(handle: FfiPactHandle, description: string): FfiInteractionHandle; pactffiUponReceiving(handle: FfiInteractionHandle, description: string): boolean; pactffiGiven(handle: FfiInteractionHandle, providerState: string): boolean; pactffiGivenWithParam(
description: string,
name: string,
value: string,
): boolean; pactffiWithRequest(
method: string,
path: string,
): boolean; pactffiWithQueryParameter(
name: string,
index: number,
value: string,
): boolean; pactffiWithHeader(
name: string,
index: number,
value: string,
): boolean; pactffiWithBody(
contentType: string,
body: string,
): boolean; pactffiWithBinaryFile(
contentType: string,
size: number,
): boolean; pactffiWithMultipartFile(
contentType: string,
file: string,
partName: string,
): void; pactffiResponseStatus(handle: FfiInteractionHandle, status: number): boolean; pactffiWritePactFile(
handle: FfiPactHandle,
dir: string,
overwrite: boolean,
): FfiWritePactResponse; pactffiWritePactFileByPort(
port: number,
dir: string,
overwrite: boolean,
): FfiWritePactResponse; pactffiCleanupMockServer(port: number): boolean; pactffiMockServerMatched(port: number): boolean; pactffiMockServerMismatches(port: number): string; pactffiGetTlsCaCertificate(): string; pactffiLogMessage(
source: string,
logLevel: string,
message: string,
): void; pactffiLogToBuffer(level: FfiLogLevelFilter): number; pactffiInitWithLogLevel(level: string): void; pactffiLogToStdout(level: FfiLogLevelFilter): number; pactffiLogToFile(fileName: string, level: FfiLogLevelFilter): number; pactffiFetchLogBuffer(logId: number): string; pactffiUsingPlugin(
handle: FfiPactHandle,
name: string,
version: string,
): FfiConfigurePluginResponse; pactffiCleanupPlugins(handle: FfiPactHandle): void; pactffiPluginInteractionContents(
contentType: string,
contents: string,
): void; pactffiNewAsyncMessage(handle: FfiPactHandle, description: string): FfiMessageHandle; pactffiNewSyncMessage(handle: FfiPactHandle, description: string): FfiInteractionHandle; pactffiMessageExpectsToReceive(handle: FfiMessageHandle, description: string): void; pactffiMessageGiven(handle: FfiMessageHandle, description: string): void; pactffiMessageGivenWithParam(
description: string,
key: string,
value: string,
): void; pactffiMessageWithContents(
contentType: string,
data: string,
): void; pactffiMessageWithBinaryContents(
contentType: string,
data: Buffer,
size: number,
): void; pactffiMessageWithMetadata(
key: string,
value: string,
): void; pactffiMessageReify(handle: FfiMessageHandle): string; }