From 21ac0216b3d2c3efa2b2362379fda5fd477438dd Mon Sep 17 00:00:00 2001 From: buyuxiang <347586493@qq.com> Date: Tue, 31 May 2022 16:17:50 +0800 Subject: [PATCH] del: plugin auto-generated file --- .../templates/plugin/.debugtalk_gen.py | 75 ------------------- .../templates/plugin/debugtalk_gen.go | 16 ---- 2 files changed, 91 deletions(-) delete mode 100644 hrp/internal/scaffold/templates/plugin/.debugtalk_gen.py delete mode 100644 hrp/internal/scaffold/templates/plugin/debugtalk_gen.go diff --git a/hrp/internal/scaffold/templates/plugin/.debugtalk_gen.py b/hrp/internal/scaffold/templates/plugin/.debugtalk_gen.py deleted file mode 100644 index d3b72a66..00000000 --- a/hrp/internal/scaffold/templates/plugin/.debugtalk_gen.py +++ /dev/null @@ -1,75 +0,0 @@ -# NOTE: Generated By hrp v4.1.1, DO NOT EDIT! - -import logging -import time -import funppy - -from typing import List - - -def get_user_agent(): - return "hrp/funppy" - - -def sleep(n_secs): - time.sleep(n_secs) - - -def sum(*args): - result = 0 - for arg in args: - result += arg - return result - - -def sum_ints(*args: List[int]) -> int: - result = 0 - for arg in args: - result += arg - return result - - -def sum_two_int(a: int, b: int) -> int: - return a + b - - -def sum_two_string(a: str, b: str) -> str: - return a + b - - -def sum_strings(*args: List[str]) -> str: - result = "" - for arg in args: - result += arg - return result - - -def concatenate(*args: List[str]) -> str: - result = "" - for arg in args: - result += str(arg) - return result - - -def setup_hook_example(name): - logging.warning("setup_hook_example") - return f"setup_hook_example: {name}" - - -def teardown_hook_example(name): - logging.warning("teardown_hook_example") - return f"teardown_hook_example: {name}" - - -if __name__ == "__main__": - funppy.register("get_user_agent", get_user_agent) - funppy.register("sleep", sleep) - funppy.register("sum", sum) - funppy.register("sum_ints", sum_ints) - funppy.register("sum_two_int", sum_two_int) - funppy.register("sum_two_string", sum_two_string) - funppy.register("sum_strings", sum_strings) - funppy.register("concatenate", concatenate) - funppy.register("setup_hook_example", setup_hook_example) - funppy.register("teardown_hook_example", teardown_hook_example) - funppy.serve() diff --git a/hrp/internal/scaffold/templates/plugin/debugtalk_gen.go b/hrp/internal/scaffold/templates/plugin/debugtalk_gen.go deleted file mode 100644 index 1def5aa4..00000000 --- a/hrp/internal/scaffold/templates/plugin/debugtalk_gen.go +++ /dev/null @@ -1,16 +0,0 @@ -// NOTE: Generated By hrp v4.1.1, DO NOT EDIT! -package main - -import ( - "github.com/httprunner/funplugin/fungo" -) - -func main() { - fungo.Register("SumTwoInt", SumTwoInt) - fungo.Register("SumInts", SumInts) - fungo.Register("Sum", Sum) - fungo.Register("SetupHookExample", SetupHookExample) - fungo.Register("TeardownHookExample", TeardownHookExample) - fungo.Register("GetUserAgent", GetUserAgent) - fungo.Serve() -}