membphis commented on issue #1186: request help: How to test the log_utils?
URL: 
https://github.com/apache/incubator-apisix/issues/1186#issuecomment-593858899
 
 
   You can take a look at this test case:
   
   https://github.com/apache/incubator-apisix/blob/master/t/core/log.t#L31
   
   If you want to add some mock function, you can do like this:
   
   
https://github.com/apache/incubator-apisix/blob/0ee3c4be0e4616dcf10e8c0f6a68a74795879fea/lua/apisix/plugins/prometheus.lua#L59
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to