IRSOL
C++ code implementing socket server for interacting with Baumer camera.
test_error.cpp File Reference
#include "irsol/protocol/message/error.hpp"
#include <catch2/catch_all.hpp>
#include <memory>
#include <string>

Go to the source code of this file.

Functions

 CHECK (result.identifier==identifier)
 
irsol::protocol::InMessage assignmentInMessage (assignment)
 
irsol::protocol::InMessage inquiryInMessage (inquiry)
 
irsol::protocol::InMessage commandInMessage (command)
 

Variables

auto description = GENERATE("hello world", "error description")
 
irsol::protocol::Assignment assignment {identifier, value}
 
auto result = irsol::protocol::Error::from(assignment, description)
 

Function Documentation

◆ assignmentInMessage()

irsol::protocol::InMessage assignmentInMessage ( assignment  )

◆ CHECK()

CHECK ( result.  identifier = =identifier)

◆ commandInMessage()

irsol::protocol::InMessage commandInMessage ( command  )

◆ inquiryInMessage()

irsol::protocol::InMessage inquiryInMessage ( inquiry  )

Variable Documentation

◆ assignment

irsol::protocol::Assignment assignment {identifier, value}

Definition at line 16 of file test_error.cpp.

16{identifier, value};
auto value

◆ description

auto description = GENERATE("hello world", "error description")

Definition at line 10 of file test_error.cpp.

◆ result

Definition at line 17 of file test_error.cpp.