ru.tinkoff.gatling.feeders.RandomPANFeeder.scala Maven / Gradle / Ivy
The newest version!
package ru.tinkoff.gatling.feeders
import io.gatling.core.feeder.Feeder
import ru.tinkoff.gatling.utils.RandomDataGenerators
object RandomPANFeeder {
/** Creates a feeder that generates a random PAN (Primary Account Number)
*
* @param paramName
* feeder's name
* @param bins
* list of BINs. Bank Identification Number (BIN) refers to the first six numbers on a payment card. This set of numbers
* identifies the financial institution that issues the card
* @return
* random string PAN feeder
*/
def apply(paramName: String, bins: String*): Feeder[String] =
feeder[String](paramName)(RandomDataGenerators.randomPAN(bins: _*))
}