Ir al contenido principal
Versión: 6.2 🚧

Arbs Adicionales

[Traducción Beta No Oficial]

Esta página fue traducida por PageTurner AI (beta). No está respaldada oficialmente por el proyecto. ¿Encontraste un error? Reportar problema →

Si buscas una colección de Arbs para generar datos de propósito general, Kotest ofrece una colección disponible.

nota

Para usarla, añade io.kotest.extensions:kotest-property-arbs:version a tu build.

ArbDetails
Arb.firstName()Produces random english or hispanic first names
Arb.lastName()Produces random last names based on US census data
Arb.name()Produces random first and last names
Arb.logins()Produces random logins with timestamp, username, location, ip address, and random result, e.g. success
Arb.usernames()Produces random usernames
Arb.stockExchanges()Produces random stock exchanges, eg New York Stock Exchange / NYSE / US
Arb.domain()Produces random domain names, eg www.wibble.co.uk
Arb.country()Produces random country objects, eg Botswana / BW / Africa
Arb.continent()Produces random continents from the list of seven
Arb.zipcode()Random zipcodes from 01000 to 99999, without validating they are extant
Arb.harryPotterCharacter()Produces random first and last names from the Harry Potter series
Arb.color()Produces random named colours, eg, midnight blue
Arb.brand()Produces random brand names, eg Betty Crocker
Arb.products()Produces random google product categories, eg Furniture > Office Furniture > Desks
Arb.vineyards()Produces random vineyard names, eg Château Montus Prestige
Arb.wineRegions()Produces a random wine region, eg Chassagne-Montrachet
Arb.wines()Combines several wine details producers to return full wine objects
Arb.wineReviews()Combines wine producer and adds in random review scores and usernames
Arb.wineVarieties()Random wine variety, e.g. 'Sauvignon Blanc'
Arb.wineries()Random wine producer, e.g. 'Santa Cruz Mountain Vineyard'
Arb.iceCreamFlavors()Random ice cream flavors such as Pistachio or Grape Escape
Arb.iceCreams()Random ice cream servings with one or more flavors, cone type and size
Arb.tubeStation()Produces randomly selected London underground tube stations
Arb.tubeJourney()Generates random journeys from a randomly selected start and end underground station
Arb.airport()Random real world airport with IATA code
Arb.airline()Random real world airline
Arb.airJourney()Random airtrips between two airports with an airline and times
Arb.cluedoSuspects()Clue/Cluedo suspects, eg Professor Plum
Arb.cluedoWeapons()Clue/Cluedo weapons, eg Lead piping
Arb.cluedoLocations()Clue/Cluedo locations, eg Ballroom
Arb.cluedoAccusation()Clue/Cluedo accusations, eg, Mrs White / Billiards Room / Rope
Arb.chessPiece()Chess piece with points
Arb.chessSquare()Chesss square with file A-H and rank 1-8
Arb.chessMove()Chess move from square to square with captured piece if any. No validation is performed to check the move is legal.
Arb.transactions()Transactions with a card number, card type, amount and transaction type
Arb.cars()Random car manufacturers
Arb.googleTaxonomy()Structured taxonomy of random things