框架及测试用例写法

Posted 养老保险年审

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了框架及测试用例写法相关的知识,希望对你有一定的参考价值。

框架及测试用例

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #if 0
  4. //////////////////////////////////////////////////////////////////////////
  5. // 做一个键值对读取的函数,根据key读取value
  6. // key = "value"
  7. //
  8. int getKeybyValue(char* pKeyValude, char* pKey, char* pValude)
  9. {
  10. return 0;
  11. }
  12. int main()
  13. {
  14. int ret = 0;
  15. char pKeyValude[] = "key1=valude1";
  16. char pKey[] = "key1";
  17. char pValude[1024] = { 0 };
  18. ret = getKeybyValue(pKeyValude, pKey, pValude);
  19. if (ret!=0)
  20. {
  21. printf("func getKeybyValue() err:%d \n", ret);
  22. return ret;
  23. }
  24. printf("Valude:%s \n", pValude);
  25. system("pause");
  26. return 0;
  27. }
  28. #endif




以上是关于框架及测试用例写法的主要内容,如果未能解决你的问题,请参考以下文章