Skip to content

RPGF Attestations discovery (#329) #23

RPGF Attestations discovery (#329)

RPGF Attestations discovery (#329) #23

GitHub Actions / Backend Tests succeeded Sep 29, 2023 in 0s

Backend Tests ✅

Tests passed successfully

✅ ./packages/backend/dist/reports/junit.xml

34 tests were completed in 31s with 34 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
array 1✅ 620ms
compareBy 1✅ 425ms
Decode Calldata Values 1✅ 606ms
Decode Proposal Data 5✅ 8s
discriminatedUnion 2✅ 674ms
durableObjectEntityStore 1✅ 6s
efficientLengthEncoding 2✅ 860ms
failableStorage 2✅ 617ms
followChain 1✅ 2s
formSchema 1✅ 809ms
limitGenerator 2✅ 452ms
memoryStorage 2✅ 487ms
serializeIndexKey 3✅ 436ms
trimENSStatementHeader 9✅ 553ms
weightedRandomizer 1✅ 9s

✅ array

array works
  ✅ array works

✅ compareBy

compareBy compareBy ascending
  ✅ compareBy compareBy ascending

✅ Decode Calldata Values

Decode Calldata Values should decode calldata values
  ✅ Decode Calldata Values should decode calldata values

✅ Decode Proposal Data

Decode Proposal Data decodes ProposalData
  ✅ Decode Proposal Data decodes ProposalData
Decode Proposal Data decodes VotePrams
  ✅ Decode Proposal Data decodes VotePrams
Decode Proposal Data decodes BadgeholderSchema
  ✅ Decode Proposal Data decodes BadgeholderSchema
Decode Proposal Data decodes ApplicationSchema
  ✅ Decode Proposal Data decodes ApplicationSchema
Decode Proposal Data decodes ListSchema
  ✅ Decode Proposal Data decodes ListSchema

✅ discriminatedUnion

discriminatedUnion serializes
  ✅ discriminatedUnion serializes
discriminatedUnion deserializes
  ✅ discriminatedUnion deserializes

✅ durableObjectEntityStore

durableObjectEntityStore works in the face of arbitrary failures (with seed=226565930)
  ✅ durableObjectEntityStore works in the face of arbitrary failures (with seed=226565930)

✅ efficientLengthEncoding

efficientLengthEncoding sorts numbers correctly (with seed=1891687102)
  ✅ efficientLengthEncoding sorts numbers correctly (with seed=1891687102)
efficientLengthEncoding sorts strings A-Z correctly (with seed=2131416930)
  ✅ efficientLengthEncoding sorts strings A-Z correctly (with seed=2131416930)

✅ failableStorage

failableStorage fails when failure stream provided
  ✅ failableStorage fails when failure stream provided
failableStorage succeeds when success stream provided
  ✅ failableStorage succeeds when success stream provided

✅ followChain

followChain handles processing events
  ✅ followChain handles processing events

✅ formSchema

formSchema rejects empty values
  ✅ formSchema rejects empty values

✅ limitGenerator

limitGenerator should generate the correct number of entries
  ✅ limitGenerator should generate the correct number of entries
skipGenerator should skip things
  ✅ skipGenerator should skip things

✅ memoryStorage

memoryStorage commits transactions
  ✅ memoryStorage commits transactions
memoryStorage rolls back transactions correctly
  ✅ memoryStorage rolls back transactions correctly

✅ serializeIndexKey

serializeIndexKey doesn't terminate index key with suffix
  ✅ serializeIndexKey doesn't terminate index key with suffix
serializeIndexKey inserts separator between index key and entityId
  ✅ serializeIndexKey inserts separator between index key and entityId
makeIndexPrefix serializes
  ✅ makeIndexPrefix serializes

✅ trimENSStatementHeader

trimENSStatementHeader trims header for coinbase.eth
  ✅ trimENSStatementHeader trims header for coinbase.eth
trimENSStatementHeader trims header for brantly.eth
  ✅ trimENSStatementHeader trims header for brantly.eth
trimENSStatementHeader works for cory.eth
  ✅ trimENSStatementHeader works for cory.eth
trimENSStatementHeader works for fireeyesdao.eth
  ✅ trimENSStatementHeader works for fireeyesdao.eth
getTitleFromProposalDescription extracts simple title
  ✅ getTitleFromProposalDescription extracts simple title
getTitleFromProposalDescription extracts hash title
  ✅ getTitleFromProposalDescription extracts hash title
extractFirstParagraph handles images links at the beginning
  ✅ extractFirstParagraph handles images links at the beginning
extractFirstParagraph handles bold in first paragraph
  ✅ extractFirstParagraph handles bold in first paragraph
extractFirstParagraph single line statements
  ✅ extractFirstParagraph single line statements

✅ weightedRandomizer

weightedRandomizer works
  ✅ weightedRandomizer works