In the evolving landscape of global software development, the requirement for accurate and localised test data has never been more critical. The mock-jutsu library addresses this need through its comprehensive IntlIDs category, featuring the kr_brn function. This specific utility is designed to generate realistic South Korean Business Registration Numbers, commonly known as Saeopja Deungnok Beonho. By providing a standardised 10-digit identifier in the traditional NNN-NN-NNNNN format, kr_brn ensures that developers can populate their environments with data that mirrors real-world South Korean business identifiers without compromising sensitive information.
The kr_brn function is engineered to follow the structural logic utilised by the South Korean National Tax Service. Each generated string consists of three distinct segments: a three-digit tax office code, a two-digit serial number indicating the type of business entity, and a final five-digit sequence that includes a parity check digit. This level of detail is vital for developers working on internal validation logic or third-party API integrations where format accuracy is non-negotiable. Using mock-jutsu to produce this mock data allows teams to bypass the complexities of manual data creation while maintaining high standards of data integrity across their testing suites.
There are numerous testing scenarios where the kr_brn function proves indispensable. For instance, when building e-commerce platforms, ERP systems, or fintech applications targeting the East Asian market, developers must verify that registration forms, tax calculation modules, and invoicing systems handle South Korean identifiers correctly. By integrating this test data into automated pipelines, QA engineers can simulate complex business onboarding workflows and edge-case validations. This proactive approach helps in identifying potential parsing errors or UI constraints long before the application reaches a production environment.
One of the primary benefits of mock-jutsu is its versatility across different development workflows. The kr_brn function is accessible via a simple Python call for scripted data generation, a CLI command for rapid prototyping, and a JMeter function for performance testing. This multi-modal accessibility ensures that whether you are performing a quick manual check or a massive load test, generating high-quality South Korean business identifiers is seamless. Ultimately, kr_brn empowers developers to build more robust, globally-ready applications with speed and precision.
mockjutsu generate kr_brnmockjutsu bulk kr_brn --count 10mockjutsu export kr_brn --count 10 --format jsonmockjutsu export kr_brn --count 10 --format csvmockjutsu export kr_brn --count 10 --format sql# --mask: regulation-compliant output (PCI DSS / GDPR / KVKK)mockjutsu generate kr_brn --maskmockjutsu bulk kr_brn --count 5 --maskfrom mockjutsu import jutsujutsu.generate('kr_brn')jutsu.bulk('kr_brn', count=10)jutsu.template(['kr_brn'], count=5)# mask=True: regulation-compliant outputjutsu.generate('kr_brn', mask=True)jutsu.bulk('kr_brn', count=5, mask=True)${__mockjutsu_intl_ids(kr_brn)}# JMeter Function: __mockjutsu_intl_ids# Parameter 1: kr_brn# Parameter 2: (not required for this function)# Add 'mask' keyword to get a regulation-compliant masked value${__mockjutsu_intl_ids(kr_brn,mask)}GET /generate/kr_brn# → {"type":"kr_brn","result":"...","status":"ok"}GET /bulk/kr_brn?count=10POST /template {"types":["kr_brn"],"count":1}# mask=true: regulation-compliant outputGET /generate/kr_brn?mask=trueGET /bulk/kr_brn?count=5&mask=true| Parameter | Values | Description |
|---|---|---|
| --mask | true | false | Return a regulation-compliant masked value (PCI DSS, GDPR, KVKK…) |