lt_asmensIntlIDs

Mock Jutsu HOW-TO | UK

When developing software for the Baltic region, ensuring the integrity of identity verification systems is paramount. The mock-jutsu library simplifies this process by providing robust tools for generating realistic test data. One such essential function is lt_asmens, which is specifically designed to produce valid Lithuanian personal codes, known locally as Asmens kodas. These eleven-digit identifiers are crucial for testing applications that handle citizen records, financial services, or governmental registrations within Lithuania, ensuring that input validation layers function correctly before deployment.

The lt_asmens function adheres to strict regulatory standards, utilising the same sophisticated checksum algorithm as the Estonian Isikukood (EE IK). Each generated code encodes vital information, including the individual’s gender, century of birth, date of birth, and a unique sequence number, all culminating in a final control digit. By using mock-jutsu to generate this mock data, developers can ensure that their internal validation logic correctly parses these complex components without relying on sensitive, real-world information, thereby maintaining data privacy and compliance during the development lifecycle.

Implementing lt_asmens within a testing workflow is remarkably efficient, whether you are working in a local development environment or a continuous integration pipeline. For Python developers, a simple call to the library allows for the rapid generation of large datasets for unit testing. Simultaneously, the command-line interface provides a quick way to produce identifiers for manual exploratory testing, while the JMeter integration enables performance testers to simulate high-load scenarios with unique, valid inputs. This versatility makes it an indispensable tool for QA engineers who require high-quality test data that behaves exactly like production data.

Beyond simple validation, using lt_asmens helps teams identify edge cases in their software, such as leap year birth dates or century-specific logic transitions. By incorporating these realistic strings into your test suites, you reduce the risk of deployment errors and improve the overall reliability of your international identity modules. Ultimately, mock-jutsu empowers developers to build and test with confidence, providing a seamless bridge between developmental requirements and regional compliance standards through the automated generation of accurate Lithuanian personal codes.

CLI Usage
mockjutsu generate lt_asmensmockjutsu bulk lt_asmens --count 10mockjutsu export lt_asmens --count 10 --format jsonmockjutsu export lt_asmens --count 10 --format csvmockjutsu export lt_asmens --count 10 --format sql# --mask: regulation-compliant output (PCI DSS / GDPR / KVKK)mockjutsu generate lt_asmens --maskmockjutsu bulk lt_asmens --count 5 --mask
Python API
from mockjutsu import jutsujutsu.generate('lt_asmens')jutsu.bulk('lt_asmens', count=10)jutsu.template(['lt_asmens'], count=5)# mask=True: regulation-compliant outputjutsu.generate('lt_asmens', mask=True)jutsu.bulk('lt_asmens', count=5, mask=True)
JMeter
${__mockjutsu_intl_ids(lt_asmens)}# JMeter Function: __mockjutsu_intl_ids# Parameter 1: lt_asmens# Parameter 2: (not required for this function)# Add 'mask' keyword to get a regulation-compliant masked value${__mockjutsu_intl_ids(lt_asmens,mask)}
REST API
GET /generate/lt_asmens# → {"type":"lt_asmens","result":"...","status":"ok"}GET /bulk/lt_asmens?count=10POST /template {"types":["lt_asmens"],"count":1}# mask=true: regulation-compliant outputGET /generate/lt_asmens?mask=trueGET /bulk/lt_asmens?count=5&mask=true

Parameters

Parameter Values Description
--mask true | false Return a regulation-compliant masked value (PCI DSS, GDPR, KVKK…)

Other Languages