Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/firebase/firebase-functions-test
/ functions
Functions
131 in github.com/firebase/firebase-functions-test
⨍
Functions
131
◇
Types & classes
8
↓ 67 callers
Function
wrapV2
( cloudFunction: CloudFunction<T> | CallableFunction<any, any> )
src/v2.ts:73
↓ 29 callers
Function
getEventType
(cloudFunction: CloudFunction)
src/cloudevent/mocks/helpers.ts:11
↓ 20 callers
Function
getBaseCloudEvent
( cloudFunction: v2.CloudFunction<EventType> )
src/cloudevent/mocks/helpers.ts:21
↓ 14 callers
Function
makeDataSnapshot
( /** Value of data for the snapshot. */ val: string | number | boolean | any[] | object | null, /** Ful
src/providers/database.ts:29
↓ 13 callers
Function
getEventFilters
( cloudFunction: CloudFunction )
src/cloudevent/mocks/helpers.ts:15
↓ 11 callers
Function
wrap
( cloudFunction: CloudFunctionV1<T> | CloudFunctionV2<V> | HttpsFunctionV2 )
src/main.ts:76
↓ 10 callers
Method
cleanup
Complete clean up tasks.
src/lifecycle.ts:74
↓ 10 callers
Function
constructBackgroundCF
(eventType?: string)
spec/main.spec.ts:37
↓ 10 callers
Method
init
Initialize the SDK.
src/lifecycle.ts:37
↓ 10 callers
Function
makeDocumentSnapshot
( /** Key-value pairs representing data in the document, pass in `{}` to mock the snapshot of * a documen
src/providers/firestore.ts:68
↓ 9 callers
Function
resolveStringExpression
( stringOrExpression: string | Expression<string> )
src/cloudevent/mocks/helpers.ts:34
↓ 9 callers
Function
wrapped
(data, options)
src/v1.ts:164
↓ 5 callers
Method
getApp
()
src/app.ts:42
↓ 5 callers
Function
mockConfig
(conf: { [key: string]: { [key: string]: any } })
src/v1.ts:377
↓ 4 callers
Function
_extractParams
( wildcardTriggerPath: string, dataPath: string )
src/v1.ts:325
↓ 4 callers
Function
testApp
()
src/app.ts:26
↓ 3 callers
Function
_checkOptionValidity
( validFields: string[], options: { [s: string]: any } )
src/v1.ts:228
↓ 3 callers
Function
dateToTimestampProto
( timeString?: string )
src/providers/firestore.ts:36
↓ 3 callers
Method
deleteApp
()
src/app.ts:56
↓ 3 callers
Function
generateMockCloudEvent
( cloudFunction: CloudFunction<EventType>, cloudEventPartial?: DeepPartial<EventType> )
src/cloudevent/generate.ts:32
↓ 3 callers
Function
getOrCreateDataSnapshot
( data: database.DataSnapshot | object, ref: string )
src/cloudevent/mocks/database/helpers.ts:20
↓ 3 callers
Function
getOrCreateDocumentSnapshot
Make a DocumentSnapshot from the user-provided partial data.
src/cloudevent/mocks/firestore/helpers.ts:186
↓ 3 callers
Function
mockSecretManager
(conf: Record<string, string>)
src/secretManager.ts:2
↓ 3 callers
Function
printUsage
()
scripts/tweet.js:6
↓ 2 callers
Function
_makeDefaultContext
( cloudFunction: CloudFunction<T>, options: EventContextOptions, triggerData?: T )
src/v1.ts:246
↓ 2 callers
Function
_makeResourceName
( triggerResource: string | Expression<string>, params = {} )
src/v1.ts:203
↓ 2 callers
Function
extractRef
(rawRef: string, params: Record<string, string>)
src/cloudevent/mocks/helpers.ts:55
↓ 2 callers
Function
getCommonDatabaseFields
( cloudFunction: CloudFunction< database.DatabaseEvent< database.DataSnapshot | Change<database.Da
src/cloudevent/mocks/database/helpers.ts:112
↓ 2 callers
Function
getFirestoreEventFields
Finds or provides reasonable defaults for mock FirestoreEvent data.
src/cloudevent/mocks/firestore/helpers.ts:139
↓ 2 callers
Function
objectToValueProto
(data: object)
src/providers/firestore.ts:155
↓ 1 callers
Function
_extractDatabaseParams
( triggerResource: string | Expression<string>, data: database.DataSnapshot )
src/v1.ts:299
↓ 1 callers
Function
_extractFirestoreDocumentParams
( triggerResource: string | Expression<string>, data: firestore.DocumentSnapshot )
src/v1.ts:308
↓ 1 callers
Function
_makeEventId
()
src/v1.ts:217
↓ 1 callers
Function
assertIsCloudFunction
( cf: CloudFunction<T> | CallableFunction<any, any> )
src/v2.ts:47
↓ 1 callers
Function
exampleDataSnapshot
( refPath = 'messages/1234' )
src/providers/database.ts:57
↓ 1 callers
Function
exampleDataSnapshotChange
( beforeRefPath = 'messages/1234', afterRefPath = 'messages/1234' )
src/providers/database.ts:66
↓ 1 callers
Function
exampleDocumentSnapshot
()
src/providers/firestore.ts:110
↓ 1 callers
Function
exampleDocumentSnapshotChange
()
src/providers/firestore.ts:127
↓ 1 callers
Function
generateCombinedCloudEvent
( cloudFunction: CloudFunction<EventType>, cloudEventPartial?: DeepPartial<EventType> )
src/cloudevent/generate.ts:19
↓ 1 callers
Function
getBillingPlanAutomatedUpdateData
()
src/cloudevent/mocks/alerts/billing-on-plan-automated-update-published.ts:43
↓ 1 callers
Function
getBillingPlanUpdateData
Alert Billing Data
src/cloudevent/mocks/alerts/billing-on-plan-update-published.ts:43
↓ 1 callers
Function
getConfigUpdateData
()
src/cloudevent/mocks/remoteconfig/remote-config-on-config-updated.ts:27
↓ 1 callers
Function
getCrashlyticsNewAnrIssueData
()
src/cloudevent/mocks/alerts/crashlytics-on-new-anr-issue-published.ts:42
↓ 1 callers
Function
getCrashlyticsNewFatalIssueData
()
src/cloudevent/mocks/alerts/crashlytics-on-new-fatal-issue-published.ts:42
↓ 1 callers
Function
getCrashlyticsNewNonfatalIssueData
()
src/cloudevent/mocks/alerts/crashlytics-on-new-nonfatal-issue-published.ts:43
↓ 1 callers
Function
getCrashlyticsRegressionAlertPayload
Alert Crashlytics Data
src/cloudevent/mocks/alerts/crashlytics-on-regression-alert-published.ts:43
↓ 1 callers
Function
getCrashlyticsStabilityData
()
src/cloudevent/mocks/alerts/crashlytics-on-stability-digest-published.ts:43
↓ 1 callers
Function
getCrashlyticsVelocityAlertData
()
src/cloudevent/mocks/alerts/crashlytics-on-velocity-alert-published.ts:42
↓ 1 callers
Function
getDocumentSnapshotChangeCloudEvent
( cloudFunction: CloudFunction< firestore.FirestoreEvent<Change<DocumentSnapshot>> >, cloudEventPart
src/cloudevent/mocks/firestore/helpers.ts:76
↓ 1 callers
Function
getDocumentSnapshotCloudEvent
( cloudFunction: CloudFunction<firestore.FirestoreEvent<DocumentSnapshot>>, cloudEventPartial?: DeepPartia
src/cloudevent/mocks/firestore/helpers.ts:21
↓ 1 callers
Function
getOnAlertPublishedData
Alert Published Data
src/cloudevent/mocks/alerts/alerts-on-alert-published.ts:43
↓ 1 callers
Function
getOrCreateDataSnapshotChange
( data: DeepPartial<Change<database.DataSnapshot> | ChangeLike>, ref: string )
src/cloudevent/mocks/database/helpers.ts:33
↓ 1 callers
Function
getOrCreateDocumentSnapshotChange
Make a DocumentSnapshotChange from the user-provided partial data.
src/cloudevent/mocks/firestore/helpers.ts:200
↓ 1 callers
Function
getStorageObjectData
( bucket: string, filename: string, generation: number )
src/cloudevent/mocks/storage/storage-data.ts:5
↓ 1 callers
Function
getTestMatrixCompletedData
()
src/cloudevent/mocks/testlab/test-lab-on-test-matrix-completed.ts:27
↓ 1 callers
Function
getThresholdAlertPayload
()
src/cloudevent/mocks/alerts/performance-on-threshold-alert-published.ts:44
↓ 1 callers
Function
getUrl
(version)
scripts/tweet.js:18
↓ 1 callers
Function
isCallableV2Function
( cf: CloudFunction<T> | CallableFunction<any, any> )
src/v2.ts:41
↓ 1 callers
Function
isV2CloudFunction
* The key differences between V1 and V2 CloudFunctions are: * <ul> * <li> V1 CloudFunction is sometimes a binary function * <li> V2 CloudFunc
src/main.ts:100
↓ 1 callers
Function
makeChange
(before: T, after: T)
src/v1.ts:372
↓ 1 callers
Function
makeEventId
()
src/cloudevent/mocks/helpers.ts:43
↓ 1 callers
Function
makeMessage
( jsonOrEncodedString: { [key: string]: any } | string, attributes?: { [key: string]: string } )
src/providers/pubsub.ts:41
↓ 1 callers
Function
mergeCloudEvents
( generatedCloudEvent: EventType, cloudEventPartial: DeepPartial<EventType> )
src/cloudevent/generate.ts:56
↓ 1 callers
Function
serviceFromEventType
(eventType?: string)
src/v1.ts:348
↓ 1 callers
Function
shouldDeleteUserSuppliedData
( generatedCloudEvent: EventType, cloudEventPartial: DeepPartial<EventType> )
src/cloudevent/generate.ts:80
↓ 1 callers
Function
wrapV1
( cloudFunction: CloudFunction<T> )
src/v1.ts:124
Function
clearFirestoreData
(options: { projectId: string } | string)
src/providers/firestore.ts:260
Function
cloudFunction
(input)
spec/main.spec.ts:38
Method
constructor
()
src/lifecycle.ts:32
Method
constructor
()
src/app.ts:40
Function
encodeHelper
(val)
src/providers/firestore.ts:156
Function
exampleAnalyticsEvent
()
src/providers/analytics.ts:40
Function
exampleMessage
()
src/providers/pubsub.ts:62
Function
exampleObjectMetadata
()
src/providers/storage.ts:45
Function
exampleUserRecord
()
src/providers/auth.ts:34
Function
generateMock
( cloudFunction: CloudFunction<CrashlyticsEvent<NewFatalIssuePayload>> )
src/cloudevent/mocks/alerts/crashlytics-on-new-fatal-issue-published.ts:18
Function
generateMock
( cloudFunction: CloudFunction<PerformanceEvent<ThresholdAlertPayload>> )
src/cloudevent/mocks/alerts/performance-on-threshold-alert-published.ts:19
Function
generateMock
( cloudFunction: CloudFunction<CrashlyticsEvent<NewNonfatalIssuePayload>> )
src/cloudevent/mocks/alerts/crashlytics-on-new-nonfatal-issue-published.ts:18
Function
generateMock
( cloudFunction: CloudFunction<AlertEvent<FirebaseAlertData>> )
src/cloudevent/mocks/alerts/alerts-on-alert-published.ts:14
Function
generateMock
( cloudFunction: CloudFunction<CrashlyticsEvent<VelocityAlertPayload>> )
src/cloudevent/mocks/alerts/crashlytics-on-velocity-alert-published.ts:18
Function
generateMock
( cloudFunction: CloudFunction<CrashlyticsEvent<NewAnrIssuePayload>> )
src/cloudevent/mocks/alerts/crashlytics-on-new-anr-issue-published.ts:18
Function
generateMock
( cloudFunction: CloudFunction<CrashlyticsEvent<StabilityDigestPayload>> )
src/cloudevent/mocks/alerts/crashlytics-on-stability-digest-published.ts:18
Function
generateMock
( cloudFunction: CloudFunction<AppDistributionEvent<NewTesterDevicePayload>> )
src/cloudevent/mocks/alerts/app-distribution-on-new-tester-ios-device-published.ts:17
Function
generateMock
( cloudFunction: CloudFunction<CrashlyticsEvent<RegressionAlertPayload>> )
src/cloudevent/mocks/alerts/crashlytics-on-regression-alert-published.ts:18
Function
generateMock
( cloudFunction: CloudFunction<BillingEvent<PlanAutomatedUpdatePayload>> )
src/cloudevent/mocks/alerts/billing-on-plan-automated-update-published.ts:18
Function
generateMock
( cloudFunction: CloudFunction<BillingEvent<PlanUpdatePayload>> )
src/cloudevent/mocks/alerts/billing-on-plan-update-published.ts:18
Function
generateMock
( cloudFunction: CloudFunction<StorageEvent>, cloudEventPartial?: DeepPartial<StorageEvent> )
src/cloudevent/mocks/storage/index.ts:14
Function
generateMock
( cloudFunction: CloudFunction<CloudEvent<ConfigUpdateData>> )
src/cloudevent/mocks/remoteconfig/remote-config-on-config-updated.ts:9
Function
generateMock
( cloudFunction: CloudFunction<CloudEvent<any>>, cloudEventPartial?: DeepPartial<CloudEvent<any>> )
src/cloudevent/mocks/eventarc/eventarc-on-custom-event-published.ts:6
Function
generateMock
( cloudFunction: CloudFunction<CloudEvent<pubsub.MessagePublishedData>>, cloudEventPartial?: DeepParti
src/cloudevent/mocks/pubsub/pubsub-on-message-published.ts:13
Function
generateMock
( cloudFunction: CloudFunction<CloudEvent<TestMatrixCompletedData>> )
src/cloudevent/mocks/testlab/test-lab-on-test-matrix-completed.ts:9
Function
getDatabaseChangeSnapshotCloudEvent
( cloudFunction: CloudFunction< database.DatabaseEvent<Change<database.DataSnapshot>> >, cloudEventP
src/cloudevent/mocks/database/helpers.ts:79
Function
getDatabaseSnapshotCloudEvent
( cloudFunction: CloudFunction<database.DatabaseEvent<database.DataSnapshot>>, cloudEventPartial?: DeepPar
src/cloudevent/mocks/database/helpers.ts:48
Function
getDocumentSnapshotChangeCloudEventWithAuthContext
( cloudFunction: CloudFunction< firestore.FirestoreAuthEvent<Change<DocumentSnapshot>> >, cloudEvent
src/cloudevent/mocks/firestore/helpers.ts:110
Function
getDocumentSnapshotCloudEventWithAuthContext
( cloudFunction: CloudFunction<firestore.FirestoreAuthEvent<DocumentSnapshot>>, cloudEventPartial?: DeepPa
src/cloudevent/mocks/firestore/helpers.ts:50
Function
handler
(cloudEvent)
spec/v2.spec.ts:46
Function
handler
(cloudEvent)
spec/main.spec.ts:232
Function
init
()
src/app.ts:36
Function
makeAnalyticsEvent
( /** Fields of AnalyticsEvent that you'd like to specify. */ fields: { [key: string]: string } )
src/providers/analytics.ts:26
Function
makeObjectMetadata
( /** Fields of ObjectMetadata that you'd like to specify. */ fields: { [key: string]: string } )
src/providers/storage.ts:26
next →
1–100 of 131, ranked by callers