aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-03-14 13:40:48 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-03-14 13:40:48 +0300
commit2a7d39e995eeede2e266c5071db19597060cf038 (patch)
tree6fb58917ebc955b180a47a8212875a4538f954a5 /test
parentDocker: ignore irrelevant stuff (diff)
downloadmath-server-2a7d39e995eeede2e266c5071db19597060cf038.tar.gz
math-server-2a7d39e995eeede2e266c5071db19597060cf038.zip
add missing copyright headers
Diffstat (limited to '')
-rw-r--r--test/benchmarks/lexer.cpp5
-rw-r--r--test/stress_test.py16
2 files changed, 17 insertions, 4 deletions
diff --git a/test/benchmarks/lexer.cpp b/test/benchmarks/lexer.cpp
index 9384ee2..5b0612f 100644
--- a/test/benchmarks/lexer.cpp
+++ b/test/benchmarks/lexer.cpp
@@ -1,3 +1,8 @@
+// Copyright (c) 2020 Egor Tensin <Egor.Tensin@gmail.com>
+// This file is part of the "math-server" project.
+// For details, see https://github.com/egor-tensin/math-server.
+// Distributed under the MIT License.
+
#include <server/lexer/details/parse.hpp>
#include <benchmark/benchmark.h>
diff --git a/test/stress_test.py b/test/stress_test.py
index 233a0de..3e13a10 100644
--- a/test/stress_test.py
+++ b/test/stress_test.py
@@ -1,3 +1,15 @@
+#!/usr/bin/env python3
+
+# Copyright (c) 2019 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "math-server" project.
+# For details, see https://github.com/egor-tensin/math-server.
+# Distributed under the MIT License.
+
+'''This is a crappy script to feed the server with somewhat random arithmetic
+expressions.
+It's throwaway, hence the poor quality.
+'''
+
import argparse
import ast
from contextlib import contextmanager
@@ -9,10 +21,6 @@ from subprocess import PIPE
import sys
from timeit import default_timer
-# This is a crappy script to feed the server with somewhat random arithmetic
-# expressions.
-# It's throwaway, hence the poor quality.
-
DEFAULT_CLIENT_PATH = 'client'
DEFAULT_HOST = 'localhost'
DEFAULT_PORT = 18000