.... 나에게 어떤 말을 원하는거니.....

Wonseok Ko.
Ph.D Student
School of Computer Science, Kookmin University,
Seoul, Korea.
Cell: +82-10-4617-4225, Office: +82-2-912-4760


2014-02-24 10:24 GMT-08:00 kim6515516 <notifications@github.com>:

> In KimMyeungHoe/test/TestGetFileSystemInfo.c:
>
> >  }
> >
> > +void test_GetFileSystemsInfoFailedToCaseWrongOutFromCommand(void)
> > +{
> > +    char *wrongOutput = "not foufdf dfs asdfsdf fsdf adfs sdlsdlflsd asdf";
> > +    pMockFile = fmemopen(wrongOutput, strlen(wrongOutput), "rw");
>
> 제가 책을 보면서 잘못 이해 한게 있습니다.
> A common misconception is that a mock is a simulator; it is not. A
> mock is used to simulate and verify a series of interactions for a specific
> usage scenario. The mock has no idea what a flash device is. Each test
> case programs the mock for the needed scenario. The mock simulates a
> single scenario at a time, not the device in total. And it's good we don't
> have to create a flash simulator. Such a simulator would probably be
> more complicated than the device driver itself.
>
> Mock은 시뮬레이터가 아니라고 하네요. 목 객체는 디바이스 전체를 시뮬레이션하는 것이 아니라 한번에 하나의 시나리오만 시뮬레이션
> 한다.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/Wonseok/testCmock/pull/3/files#r10002565>
> .
>