Ada 4.1.1
Fast spec-compliant URL parser
Loading...
Searching...
No Matches
safety_tests.cpp File Reference
#include "gtest/gtest.h"
#include <string>
#include "idna.h"
#include "ada/idna/limits.h"
#include "../src/table_store.hpp"

Go to the source code of this file.

Functions

 TEST (Safety, RejectsOverlongDomainInput)
 TEST (Safety, ToAsciiAcceptsLongAsciiInput)
 TEST (Safety, ToAsciiIdempotentAcrossLimit)
 TEST (Safety, RejectsInvalidUtf8)
 TEST (Safety, ToAsciiBoolOverload)
 TEST (Safety, ToAsciiToUnicodeRoundTripAscii)
 TEST (Safety, ToAsciiToUnicodeRoundTripUnicode)
 TEST (Safety, TablesReadyAfterUse)
 TEST (Safety, IsAlreadyNfc)
 TEST (Safety, IsAlreadyNfcCompositionExclusions)
 TEST (Safety, ComposesUnicode16Compositions)
 TEST (Safety, ComposesHangulLvPlusTrailingJamo)

Function Documentation

◆ TEST() [1/12]

TEST ( Safety ,
ComposesHangulLvPlusTrailingJamo  )

◆ TEST() [2/12]

TEST ( Safety ,
ComposesUnicode16Compositions  )

◆ TEST() [3/12]

TEST ( Safety ,
IsAlreadyNfc  )

Definition at line 121 of file safety_tests.cpp.

References ada::idna::ensure_tables(), and ada::idna::is_already_nfc().

◆ TEST() [4/12]

TEST ( Safety ,
IsAlreadyNfcCompositionExclusions  )

◆ TEST() [5/12]

TEST ( Safety ,
RejectsInvalidUtf8  )

Definition at line 50 of file safety_tests.cpp.

References ada::idna::to_ascii().

◆ TEST() [6/12]

TEST ( Safety ,
RejectsOverlongDomainInput  )

◆ TEST() [7/12]

TEST ( Safety ,
TablesReadyAfterUse  )

Definition at line 111 of file safety_tests.cpp.

References ada::idna::tables_are_ready(), and ada::idna::to_ascii().

◆ TEST() [8/12]

TEST ( Safety ,
ToAsciiAcceptsLongAsciiInput  )

Definition at line 29 of file safety_tests.cpp.

References ada::idna::max_domain_input_bytes, and ada::idna::to_ascii().

◆ TEST() [9/12]

TEST ( Safety ,
ToAsciiBoolOverload  )

Definition at line 65 of file safety_tests.cpp.

References ada::idna::to_ascii().

◆ TEST() [10/12]

TEST ( Safety ,
ToAsciiIdempotentAcrossLimit  )

Definition at line 38 of file safety_tests.cpp.

References ada::idna::max_domain_input_bytes, and ada::idna::to_ascii().

◆ TEST() [11/12]

TEST ( Safety ,
ToAsciiToUnicodeRoundTripAscii  )

Definition at line 77 of file safety_tests.cpp.

References ada::idna::to_ascii(), and ada::idna::to_unicode().

◆ TEST() [12/12]

TEST ( Safety ,
ToAsciiToUnicodeRoundTripUnicode  )

Definition at line 93 of file safety_tests.cpp.

References ada::idna::to_ascii(), and ada::idna::to_unicode().