Skip to content

Commit

Permalink
copy tests for Caller.cpp. Tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Bechir-Brahem committed Oct 23, 2023
1 parent 9502271 commit 754324f
Show file tree
Hide file tree
Showing 23 changed files with 12,471 additions and 3,375 deletions.
6 changes: 4 additions & 2 deletions slsDetectorSoftware/generator/Caller.in.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ namespace sls {
class Caller {
public:
Caller(Detector *ptr) : det(ptr) {}
void call(const CmdParser &parser, int action,
std::ostream &os = std::cout);
void call(const std::string &command,
const std::vector<std::string> &arguments, int detector_id,
int action, std::ostream &os = std::cout, int receiver_id = -1);

IpAddr getDstIpFromAuto();
IpAddr getSrcIpFromAuto();
Expand Down Expand Up @@ -51,6 +52,7 @@ class Caller {
return ToString(value, unit);
}

std::vector<std::string> getAllCommands();
std::string list(int action);

// THIS COMMENT IS GOING TO BE REPLACED BY THE ACTUAL CODE (1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ _sd() {

# if IS_PATH is activated, autocomplete with the path
if [[ ${IS_PATH} -eq 1 ]]; then
COMPREPLY=($(compgen -d -- "${cur}"))
COMPREPLY=($(compgen -f -- "${cur}"))
return 0
fi

Expand All @@ -163,4 +163,9 @@ _sd() {
}

complete -F _sd -o filenames sls_detector_get
complete -F _sd -o filenames g
complete -F _sd -o filenames p
complete -F _sd -o filenames detg
complete -F _sd -o filenames detp

complete -F _sd -o filenames sls_detector_put
Loading

0 comments on commit 754324f

Please sign in to comment.