join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
macaddress_test.cpp File Reference
#include <join/error.hpp>
#include <join/macaddress.hpp>
#include <gtest/gtest.h>
#include <linux/if_arp.h>
#include <climits>
Include dependency graph for macaddress_test.cpp:

Functions

 TEST (MacAddress, defaultConstruct)
 Test default construction.
 
 TEST (MacAddress, copyConstruct)
 Test copy construction.
 
 TEST (MacAddress, moveConstruct)
 Test move construction.
 
 TEST (MacAddress, arrayConstruct)
 Test array construction.
 
 TEST (MacAddress, initListConstruct)
 Test initialization list construction.
 
 TEST (MacAddress, sockaddrConstruct)
 Test sockaddr construction.
 
 TEST (MacAddress, stringConstruct)
 Test string construction.
 
 TEST (MacAddress, family)
 Test family method.
 
 TEST (MacAddress, addr)
 Test addr method.
 
 TEST (MacAddress, length)
 Test length method.
 
 TEST (MacAddress, isWildcard)
 Test isWildcard method.
 
 TEST (MacAddress, isBroadcast)
 Test isBroadcast method.
 
 TEST (MacAddress, isMacAddress)
 Test isMacAddress method.
 
 TEST (MacAddress, toString)
 Test toString method.
 
 TEST (MacAddress, toIpv6)
 Test toIpv6 method.
 
 TEST (MacAddress, toLinkLocalIpv6)
 Test toLinkLocalIpv6 method.
 
 TEST (MacAddress, toUniqueLocalIpv6)
 Test toUniqueLocalIpv6 method.
 
 TEST (MacAddress, clear)
 Test clear method.
 
 TEST (MacAddress, begin)
 Test begin method.
 
 TEST (MacAddress, cbegin)
 Test cbegin method.
 
 TEST (MacAddress, end)
 Test end method.
 
 TEST (MacAddress, cend)
 Test cend method.
 
 TEST (MacAddress, address)
 Test address method.
 
 TEST (MacAddress, copyAssign)
 Test copy assignment method.
 
 TEST (MacAddress, moveAssign)
 Test move assignment method.
 
 TEST (MacAddress, arrayAssign)
 Test array assignment method.
 
 TEST (MacAddress, initListAssign)
 Test array assignment method.
 
 TEST (MacAddress, sockaddrAssign)
 Test sockaddr assignment method.
 
 TEST (MacAddress, addAssign)
 Test add assignment method.
 
 TEST (MacAddress, preIncrement)
 Test pre-increment method.
 
 TEST (MacAddress, postIncrement)
 Test post-increment method.
 
 TEST (MacAddress, getElement)
 Test element access method.
 
 TEST (MacAddress, notOperation)
 not operators.
 
 TEST (MacAddress, add)
 Test add method.
 
 TEST (MacAddress, equal)
 Test is equal method.
 
 TEST (MacAddress, different)
 Test is different method.
 
 TEST (MacAddress, lower)
 Test is lower method.
 
 TEST (MacAddress, lowerOrEqual)
 Test is lower or equal method.
 
 TEST (MacAddress, greater)
 Test is greater method.
 
 TEST (MacAddress, greaterOrEqual)
 Test is greater or equal method.
 
 TEST (MacAddress, and)
 and operators.
 
 TEST (MacAddress, or)
 or operators.
 
 TEST (MacAddress, xor)
 xor operators.
 
 TEST (MacAddress, serialize)
 test the serialize method.
 
int main (int argc, char **argv)
 main function.
 

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

main function.

◆ TEST() [1/44]

TEST ( MacAddress ,
add  )

Test add method.

◆ TEST() [2/44]

TEST ( MacAddress ,
addAssign  )

Test add assignment method.

◆ TEST() [3/44]

TEST ( MacAddress ,
addr  )

Test addr method.

◆ TEST() [4/44]

TEST ( MacAddress ,
address  )

Test address method.

◆ TEST() [5/44]

TEST ( MacAddress ,
and  )

and operators.

◆ TEST() [6/44]

TEST ( MacAddress ,
arrayAssign  )

Test array assignment method.

◆ TEST() [7/44]

TEST ( MacAddress ,
arrayConstruct  )

Test array construction.

◆ TEST() [8/44]

TEST ( MacAddress ,
begin  )

Test begin method.

◆ TEST() [9/44]

TEST ( MacAddress ,
cbegin  )

Test cbegin method.

◆ TEST() [10/44]

TEST ( MacAddress ,
cend  )

Test cend method.

◆ TEST() [11/44]

TEST ( MacAddress ,
clear  )

Test clear method.

◆ TEST() [12/44]

TEST ( MacAddress ,
copyAssign  )

Test copy assignment method.

◆ TEST() [13/44]

TEST ( MacAddress ,
copyConstruct  )

Test copy construction.

◆ TEST() [14/44]

TEST ( MacAddress ,
defaultConstruct  )

Test default construction.

◆ TEST() [15/44]

TEST ( MacAddress ,
different  )

Test is different method.

◆ TEST() [16/44]

TEST ( MacAddress ,
end  )

Test end method.

◆ TEST() [17/44]

TEST ( MacAddress ,
equal  )

Test is equal method.

◆ TEST() [18/44]

TEST ( MacAddress ,
family  )

Test family method.

◆ TEST() [19/44]

TEST ( MacAddress ,
getElement  )

Test element access method.

◆ TEST() [20/44]

TEST ( MacAddress ,
greater  )

Test is greater method.

◆ TEST() [21/44]

TEST ( MacAddress ,
greaterOrEqual  )

Test is greater or equal method.

◆ TEST() [22/44]

TEST ( MacAddress ,
initListAssign  )

Test array assignment method.

◆ TEST() [23/44]

TEST ( MacAddress ,
initListConstruct  )

Test initialization list construction.

◆ TEST() [24/44]

TEST ( MacAddress ,
isBroadcast  )

Test isBroadcast method.

◆ TEST() [25/44]

TEST ( MacAddress ,
isMacAddress  )

Test isMacAddress method.

◆ TEST() [26/44]

TEST ( MacAddress ,
isWildcard  )

Test isWildcard method.

◆ TEST() [27/44]

TEST ( MacAddress ,
length  )

Test length method.

◆ TEST() [28/44]

TEST ( MacAddress ,
lower  )

Test is lower method.

◆ TEST() [29/44]

TEST ( MacAddress ,
lowerOrEqual  )

Test is lower or equal method.

◆ TEST() [30/44]

TEST ( MacAddress ,
moveAssign  )

Test move assignment method.

◆ TEST() [31/44]

TEST ( MacAddress ,
moveConstruct  )

Test move construction.

◆ TEST() [32/44]

TEST ( MacAddress ,
notOperation  )

not operators.

◆ TEST() [33/44]

TEST ( MacAddress ,
or  )

or operators.

◆ TEST() [34/44]

TEST ( MacAddress ,
postIncrement  )

Test post-increment method.

◆ TEST() [35/44]

TEST ( MacAddress ,
preIncrement  )

Test pre-increment method.

◆ TEST() [36/44]

TEST ( MacAddress ,
serialize  )

test the serialize method.

◆ TEST() [37/44]

TEST ( MacAddress ,
sockaddrAssign  )

Test sockaddr assignment method.

◆ TEST() [38/44]

TEST ( MacAddress ,
sockaddrConstruct  )

Test sockaddr construction.

◆ TEST() [39/44]

TEST ( MacAddress ,
stringConstruct  )

Test string construction.

◆ TEST() [40/44]

TEST ( MacAddress ,
toIpv6  )

Test toIpv6 method.

◆ TEST() [41/44]

TEST ( MacAddress ,
toLinkLocalIpv6  )

Test toLinkLocalIpv6 method.

◆ TEST() [42/44]

TEST ( MacAddress ,
toString  )

Test toString method.

◆ TEST() [43/44]

TEST ( MacAddress ,
toUniqueLocalIpv6  )

Test toUniqueLocalIpv6 method.

◆ TEST() [44/44]

TEST ( MacAddress ,
xor  )

xor operators.